Skip to content

Commit

Permalink
motion_generator as shared library
Browse files Browse the repository at this point in the history
  • Loading branch information
roncapat committed Jul 23, 2024
1 parent 05a73ff commit b986677
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions canopen_fake_slaves/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b986677

Please sign in to comment.