aboutsummaryrefslogtreecommitdiff
path: root/cmake/protobuf-targets.cmake
blob: 72660aaab7b260ac8277e285107b4c9d62dcc2fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Library aliases
foreach(_library
  libprotobuf-lite
  libprotobuf
  libprotoc)
  if(TARGET ${_library} AND NOT TARGET protobuf::${_library})
    add_library(protobuf::${_library} ALIAS ${_library})
  endif()
endforeach()

# Executable aliases
foreach(_executable
  protoc)
  if(TARGET ${_executable} AND NOT TARGET protobuf::${_executable})
    add_executable(protobuf::${_executable} ALIAS ${_executable})
  endif()
endforeach()