From e228d02513c0414c2bb23d73cf72529d2d0ebc03 Mon Sep 17 00:00:00 2001 From: Tim Clephas Date: Tue, 26 May 2020 10:49:22 +0200 Subject: [PATCH 1/2] Install targets --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71e4157..edd7e25 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -172,11 +172,9 @@ target_link_libraries(laser_scanner_simulator_node # ) ## Mark executables and/or libraries for installation -# install(TARGETS mobile_robot_simulator mobile_robot_simulator_node -# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} -# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} -# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} -# ) +install(TARGETS mobile_robot_simulator_node laser_scanner_simulator_node + RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} +) ## Mark cpp header files for installation # install(DIRECTORY include/${PROJECT_NAME}/ From edf253c273883e99d4a9b72cbd4a2ea37c6cb4c2 Mon Sep 17 00:00:00 2001 From: Tim Clephas Date: Wed, 27 May 2020 12:30:18 +0200 Subject: [PATCH 2/2] Also install libraries --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index edd7e25..eee7cce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -172,10 +172,15 @@ target_link_libraries(laser_scanner_simulator_node # ) ## Mark executables and/or libraries for installation +install(TARGETS mobile_robot_simulator laser_simulator + LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} +) + install(TARGETS mobile_robot_simulator_node laser_scanner_simulator_node RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} ) + ## Mark cpp header files for installation # install(DIRECTORY include/${PROJECT_NAME}/ # DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}