From 6835e0f091be132706a78adec5fbf7e9e878461e Mon Sep 17 00:00:00 2001 From: YuxuanLiuTier4Desktop <619684051@qq.com> Date: Thu, 28 Nov 2024 09:29:55 +0900 Subject: [PATCH] fix CMakeList Signed-off-by: YuxuanLiuTier4Desktop <619684051@qq.com> --- nebula_examples/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nebula_examples/CMakeLists.txt b/nebula_examples/CMakeLists.txt index a8f279284..6bcde8934 100644 --- a/nebula_examples/CMakeLists.txt +++ b/nebula_examples/CMakeLists.txt @@ -48,7 +48,6 @@ target_link_libraries(hesai_ros_offline_extract_pcd PUBLIC add_executable(hesai_ros_offline_extract_pcd_node ${CMAKE_CURRENT_SOURCE_DIR}/src/hesai/hesai_ros_offline_extract_pcd_main.cpp ) -list(APPEND ${PROJECT_NAME}_EXECUTABLES hesai_ros_offline_extract_pcd_node) target_link_libraries(hesai_ros_offline_extract_pcd_node PUBLIC hesai_ros_offline_extract_pcd @@ -66,7 +65,6 @@ target_link_libraries(hesai_ros_offline_extract_bag_pcd PUBLIC add_executable(hesai_ros_offline_extract_bag_pcd_node ${CMAKE_CURRENT_SOURCE_DIR}/src/hesai/hesai_ros_offline_extract_bag_pcd_main.cpp ) -list(APPEND ${PROJECT_NAME}_EXECUTABLES hesai_ros_offline_extract_bag_pcd_node) target_link_libraries(hesai_ros_offline_extract_bag_pcd_node PUBLIC hesai_ros_offline_extract_bag_pcd @@ -84,7 +82,6 @@ target_link_libraries(velodyne_ros_offline_extract_bag_pcd PUBLIC add_executable(velodyne_ros_offline_extract_bag_pcd_node ${CMAKE_CURRENT_SOURCE_DIR}/src/velodyne/velodyne_ros_offline_extract_bag_pcd_main.cpp ) -list(APPEND ${PROJECT_NAME}_EXECUTABLES velodyne_ros_offline_extract_bag_pcd_node) target_link_libraries(velodyne_ros_offline_extract_bag_pcd_node PUBLIC velodyne_ros_offline_extract_bag_pcd @@ -95,6 +92,13 @@ if(BUILD_TESTING) ament_lint_auto_find_test_dependencies() endif() +install(TARGETS hesai_ros_offline_extract_pcd_node + hesai_ros_offline_extract_bag_pcd_node + velodyne_ros_offline_extract_bag_pcd_node + DESTINATION lib/${PROJECT_NAME} +) + + ament_auto_package( INSTALL_TO_SHARE launch