diff --git a/CMakeLists.txt b/CMakeLists.txt index ef93e56..6a599fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,10 @@ set(COMPONENT_AMENT_DEPENDENCIES add_library(${PROJECT_NAME} SHARED src/adaptive_component.cpp) target_compile_definitions(${PROJECT_NAME} PRIVATE "COMPOSITION_BUILDING_DLL") -ament_target_dependencies(${PROJECT_NAME} ${COMPONENT_AMENT_DEPENDENCIES}) +target_link_libraries(${PROJECT_NAME} PUBLIC + rclcpp::rclcpp + rclcpp_components::component + rclcpp_components::component_manager) rclcpp_components_register_nodes(${PROJECT_NAME} "composition::AdaptiveComponent") set(node_plugins "${node_plugins}composition::AdaptiveComponent;$\n")