From 269f2f30022a660ae700d3e1643223e63fe83e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Fr=C3=B6hlich?= Date: Mon, 4 Nov 2024 19:44:34 +0100 Subject: [PATCH] Fix CMP0115 (#1830) (cherry picked from commit 434f7f54c91114028b8f73c927ecee41588f2bce) # Conflicts: # controller_manager/CMakeLists.txt --- controller_manager/CMakeLists.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/controller_manager/CMakeLists.txt b/controller_manager/CMakeLists.txt index d8d8fd232a..8639437f20 100644 --- a/controller_manager/CMakeLists.txt +++ b/controller_manager/CMakeLists.txt @@ -171,9 +171,29 @@ if(BUILD_TESTING) test/test_spawner_unspawner.cpp TIMEOUT 120 ) +<<<<<<< HEAD target_include_directories(test_spawner_unspawner PRIVATE include) target_link_libraries(test_spawner_unspawner ${PROJECT_NAME} test_controller) ament_target_dependencies(test_spawner_unspawner ros2_control_test_assets) +======= + target_link_libraries(test_spawner_unspawner + controller_manager + test_controller + ros2_control_test_assets::ros2_control_test_assets + ) + + ament_add_gmock(test_hardware_spawner + test/test_hardware_spawner.cpp + TIMEOUT 120 + ) + target_link_libraries(test_hardware_spawner + controller_manager + ros2_control_test_assets::ros2_control_test_assets + ) + + install(FILES test/test_controller_spawner_with_fallback_controllers.yaml + DESTINATION test) +>>>>>>> 434f7f5 (Fix CMP0115 (#1830)) install(FILES test/test_controller_spawner_with_type.yaml DESTINATION test)