From cb633d22d73deecd30237019413f89bfca7a7d29 Mon Sep 17 00:00:00 2001 From: YuxuanLiuTier4Desktop <619684051@qq.com> Date: Tue, 26 Nov 2024 16:27:22 +0900 Subject: [PATCH] do not use ament_auto instead Signed-off-by: YuxuanLiuTier4Desktop <619684051@qq.com> --- nebula_examples/CMakeLists.txt | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/nebula_examples/CMakeLists.txt b/nebula_examples/CMakeLists.txt index 5d194977..5c22f55a 100644 --- a/nebula_examples/CMakeLists.txt +++ b/nebula_examples/CMakeLists.txt @@ -45,9 +45,10 @@ target_link_libraries(hesai_ros_offline_extract_pcd PUBLIC nebula_decoders::nebula_decoders_hesai ) -ament_auto_add_executable(hesai_ros_offline_extract_pcd_node - ${CMAKE_CURRENT_SOURCE_DIR}/src/hesai/hesai_ros_offline_extract_pcd_main.cpp +add_executable(hesai_ros_offline_extract_pcd_node + 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 @@ -62,9 +63,10 @@ target_link_libraries(hesai_ros_offline_extract_bag_pcd PUBLIC nebula_decoders::nebula_decoders_hesai ) -ament_auto_add_executable(hesai_ros_offline_extract_bag_pcd_node - ${CMAKE_CURRENT_SOURCE_DIR}/src/hesai/hesai_ros_offline_extract_bag_pcd_main.cpp +add_executable(hesai_ros_offline_extract_bag_pcd_node + 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 @@ -78,9 +80,10 @@ target_link_libraries(hesai_ros_offline_extract_bag_decode PUBLIC nebula_decoders::nebula_decoders_hesai ) -ament_auto_add_executable(hesai_ros_offline_extract_bag_decode_node - ${CMAKE_CURRENT_SOURCE_DIR}/src/hesai/hesai_ros_offline_extract_bag_decode_main.cpp +add_executable(hesai_ros_offline_extract_bag_decode_node + src/hesai/hesai_ros_offline_extract_bag_decode_main.cpp ) +list(APPEND ${PROJECT_NAME}_EXECUTABLES hesai_ros_offline_extract_bag_decode_node) target_link_libraries(hesai_ros_offline_extract_bag_decode_node PUBLIC hesai_ros_offline_extract_bag_decode @@ -95,9 +98,10 @@ target_link_libraries(velodyne_ros_offline_extract_bag_pcd PUBLIC nebula_decoders::nebula_decoders_velodyne ) -ament_auto_add_executable(velodyne_ros_offline_extract_bag_pcd_node - ${CMAKE_CURRENT_SOURCE_DIR}/src/velodyne/velodyne_ros_offline_extract_bag_pcd_main.cpp +add_executable(velodyne_ros_offline_extract_bag_pcd_node + 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