From 0a14c46c2ba4a1271e3e8ecc8b8b46748a85f9ff Mon Sep 17 00:00:00 2001 From: Robert Brothers Date: Fri, 11 Oct 2024 16:56:52 -0500 Subject: [PATCH] Updated cmake to generate both composable node plugin library and standalone executable for NovatelGpsNode. --- novatel_gps_driver/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/novatel_gps_driver/CMakeLists.txt b/novatel_gps_driver/CMakeLists.txt index c0296b9..6f0defb 100644 --- a/novatel_gps_driver/CMakeLists.txt +++ b/novatel_gps_driver/CMakeLists.txt @@ -100,7 +100,10 @@ add_library(${PROJECT_NAME}_nodes SHARED ) target_compile_definitions(${PROJECT_NAME}_nodes PRIVATE "COMPOSITION_BUILDING_DLL") -rclcpp_components_register_nodes(${PROJECT_NAME}_nodes "novatel_gps_driver::NovatelGpsNode") +rclcpp_components_register_node(${PROJECT_NAME}_nodes + PLUGIN "novatel_gps_driver::NovatelGpsNode" + EXECUTABLE "novatel_gps_node" +) target_link_libraries(${PROJECT_NAME}_nodes Boost::boost Boost::thread