From 6244b68097ccf364e94f22aaf6fcbd7987d52d5d Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Wed, 12 Aug 2020 14:23:37 +0200 Subject: [PATCH] [CMake] install aicp_ros directories --- aicp_ros/CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/aicp_ros/CMakeLists.txt b/aicp_ros/CMakeLists.txt index ebcf4c6..0d560aa 100644 --- a/aicp_ros/CMakeLists.txt +++ b/aicp_ros/CMakeLists.txt @@ -15,9 +15,9 @@ find_package(catkin REQUIRED COMPONENTS aicp_core sensor_msgs geometry_msgs nav_msgs) - + #find_package(aicp_core) -#message("++++++++++++++++++++++ ${aicp_core_LIBRARIES}") # contains all libraries and dependencies declated in catkin_package of aicp_core +#message("++++++++++++++++++++++ ${aicp_core_LIBRARIES}") # contains all libraries and dependencies declated in catkin_package of aicp_core catkin_package( INCLUDE_DIRS include @@ -51,10 +51,10 @@ add_dependencies(${PROJECT_NAME} ${catkin_EXPORTED_TARGETS}) add_executable(${PROJECT_NAME}_node src/aicp_ros_node.cpp) target_link_libraries(${PROJECT_NAME}_node ${PROJECT_NAME} - ${catkin_LIBRARIES}) + ${catkin_LIBRARIES}) -############# +############# # Unit test # ############# #catkin_add_gtest(aicp_test_node test/aicp_test_node.cpp) @@ -79,3 +79,6 @@ install(DIRECTORY include/${PROJECT_NAME}/ DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} FILES_MATCHING PATTERN "*.hpp") +foreach(dir config launch) + install(DIRECTORY ${dir} DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) +endforeach()