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