From c3b9ebfaf9c55808d3ef6b75ecf1710076eefa5c Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 13 Feb 2024 15:31:47 -0700 Subject: [PATCH] Use ament_export_targets for all targets (#4112) * Matches new internal ALIAS targets * Use ALIAS targets for all internal linkage * Remove unnecessary calls to ament_target_dependencies in test code * Export includes in proper folders for overlays in colcon Signed-off-by: Ryan Friedman --- nav2_costmap_2d/test/integration/CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/nav2_costmap_2d/test/integration/CMakeLists.txt b/nav2_costmap_2d/test/integration/CMakeLists.txt index c458bfc577..7fbef3d41d 100644 --- a/nav2_costmap_2d/test/integration/CMakeLists.txt +++ b/nav2_costmap_2d/test/integration/CMakeLists.txt @@ -58,12 +58,9 @@ target_link_libraries(test_costmap_publisher_exec ament_add_gtest_executable(test_costmap_subscriber_exec test_costmap_subscriber.cpp ) -ament_target_dependencies(test_costmap_subscriber_exec - ${dependencies} -) target_link_libraries(test_costmap_subscriber_exec - nav2_costmap_2d_core - nav2_costmap_2d_client + ${PROJECT_NAME}::nav2_costmap_2d_core + ${PROJECT_NAME}::nav2_costmap_2d_client ) ament_add_test(test_collision_checker