From 465bb9e96e47c0263e11b33f89d0b1e2e674cc72 Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Sun, 10 Nov 2024 01:42:30 +0100 Subject: [PATCH] Apply target properties as other tests --- controller_manager/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controller_manager/CMakeLists.txt b/controller_manager/CMakeLists.txt index 0ac0fdf2ef..8919020177 100644 --- a/controller_manager/CMakeLists.txt +++ b/controller_manager/CMakeLists.txt @@ -179,9 +179,9 @@ if(BUILD_TESTING) test/test_hardware_spawner.cpp TIMEOUT 120 ) - target_link_libraries(test_hardware_spawner - controller_manager - ) + target_include_directories(test_hardware_spawner PRIVATE include) + target_link_libraries(test_hardware_spawner ${PROJECT_NAME}) + ament_target_dependencies(test_hardware_spawner ros2_control_test_assets) install(FILES test/test_controller_spawner_with_type.yaml DESTINATION test)