protobuf-targets.cmake 449 B

1234567891011121314151617
  1. # Library aliases
  2. foreach(_library
  3. libprotobuf-lite
  4. libprotobuf
  5. libprotoc)
  6. if(TARGET ${_library} AND NOT TARGET protobuf::${_library})
  7. add_library(protobuf::${_library} ALIAS ${_library})
  8. endif()
  9. endforeach()
  10. # Executable aliases
  11. foreach(_executable
  12. protoc)
  13. if(TARGET ${_executable} AND NOT TARGET protobuf::${_executable})
  14. add_executable(protobuf::${_executable} ALIAS ${_executable})
  15. endif()
  16. endforeach()