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