From 6807172c90189d46da24ed1f38767c856c2c56c5 Mon Sep 17 00:00:00 2001 From: Patrick Roncagliolo Date: Tue, 23 Jul 2024 14:18:56 +0200 Subject: [PATCH] `motion_generator` as shared library --- canopen_fake_slaves/CMakeLists.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/canopen_fake_slaves/CMakeLists.txt b/canopen_fake_slaves/CMakeLists.txt index 2c6229e3..3297f9dd 100644 --- a/canopen_fake_slaves/CMakeLists.txt +++ b/canopen_fake_slaves/CMakeLists.txt @@ -13,12 +13,12 @@ find_package(rclcpp REQUIRED) find_package(rclcpp_lifecycle REQUIRED) add_library( - motion_generaor + motion_generator SHARED "src/motion_generator.cpp" ) -target_compile_features(motion_generaor PUBLIC c_std_99 cxx_std_17) # Require C99 and C++17 -target_include_directories(motion_generaor PUBLIC +target_compile_features(motion_generator PUBLIC c_std_99 cxx_std_17) # Require C99 and C++17 +target_include_directories(motion_generator PUBLIC $ $) @@ -57,11 +57,15 @@ target_include_directories(cia402_slave_node PUBLIC ament_target_dependencies( cia402_slave_node - motion_generaor ${dependencies} ) -install(TARGETS motion_generaor +target_link_libraries( + cia402_slave_node + motion_generator +) + +install(TARGETS motion_generator DESTINATION lib/${PROJECT_NAME}) install(TARGETS basic_slave_node