From b986677768934ffe64e734910822cd61ef27f25a 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 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/canopen_fake_slaves/CMakeLists.txt b/canopen_fake_slaves/CMakeLists.txt index 2c6229e3..ec8a072a 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 $ $) @@ -61,7 +61,12 @@ ament_target_dependencies( ${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