File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -99,11 +99,18 @@ set_target_properties(mpgen PROPERTIES
9999 INSTALL_RPATH_USE_LINK_PATH TRUE )
100100set_target_properties (mpgen PROPERTIES
101101 PUBLIC_HEADER include /mp/proxy.capnp)
102- install (TARGETS mpgen EXPORT Multiprocess RUNTIME DESTINATION bin PUBLIC_HEADER DESTINATION include /mp)
102+ install (TARGETS mpgen EXPORT Multiprocess
103+ RUNTIME DESTINATION bin COMPONENT bin
104+ PUBLIC_HEADER DESTINATION include /mp COMPONENT bin)
105+ install (FILES "include/mpgen.mk"
106+ DESTINATION "include" COMPONENT bin)
107+ add_custom_target (install -bin
108+ COMMAND ${CMAKE_COMMAND} -DCOMPONENT=bin -P ${CMAKE_CURRENT_BINARY_DIR} /cmake_install.cmake
109+ VERBATIM )
110+ add_dependencies (install -bin mpgen)
103111
104112configure_file (include /mp/config.h.in "${CMAKE_CURRENT_BINARY_DIR} /include/mp/config.h" )
105113configure_file (pkgconfig/libmultiprocess.pc.in "${CMAKE_CURRENT_BINARY_DIR} /pkgconfig/libmultiprocess.pc" @ONLY)
106- install (FILES "include/mpgen.mk" DESTINATION "include" )
107114
108115install (EXPORT Multiprocess DESTINATION lib/cmake/Multiprocess)
109116
You can’t perform that action at this time.
0 commit comments