|
@@ -1,5 +1,10 @@
|
|
include(GNUInstallDirs)
|
|
include(GNUInstallDirs)
|
|
|
|
|
|
|
|
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/protobuf.pc.cmake
|
|
|
|
+ ${CMAKE_CURRENT_BINARY_DIR}/protobuf.pc @ONLY)
|
|
|
|
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/protobuf-lite.pc.cmake
|
|
|
|
+ ${CMAKE_CURRENT_BINARY_DIR}/protobuf-lite.pc @ONLY)
|
|
|
|
+
|
|
foreach(_library
|
|
foreach(_library
|
|
libprotobuf-lite
|
|
libprotobuf-lite
|
|
libprotobuf
|
|
libprotobuf
|
|
@@ -17,6 +22,8 @@ endforeach()
|
|
install(TARGETS protoc EXPORT protobuf-targets
|
|
install(TARGETS protoc EXPORT protobuf-targets
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc)
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc)
|
|
|
|
|
|
|
|
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/protobuf.pc ${CMAKE_CURRENT_BINARY_DIR}/protobuf-lite.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
|
|
|
+
|
|
file(STRINGS extract_includes.bat.in _extract_strings
|
|
file(STRINGS extract_includes.bat.in _extract_strings
|
|
REGEX "^copy")
|
|
REGEX "^copy")
|
|
foreach(_extract_string ${_extract_strings})
|
|
foreach(_extract_string ${_extract_strings})
|