Skip to content

Commit 7d158b4

Browse files
Ryanf55Marc-Morcos
authored andcommitted
Use ament_export_targets for all targets (ros-navigation#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 <[email protected]>
1 parent faa8c36 commit 7d158b4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

nav2_costmap_2d/test/integration/CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,9 @@ target_link_libraries(test_costmap_subscriber_exec
6666
ament_add_gtest_executable(test_costmap_subscriber_exec
6767
test_costmap_subscriber.cpp
6868
)
69-
ament_target_dependencies(test_costmap_subscriber_exec
70-
${dependencies}
71-
)
7269
target_link_libraries(test_costmap_subscriber_exec
73-
nav2_costmap_2d_core
74-
nav2_costmap_2d_client
70+
${PROJECT_NAME}::nav2_costmap_2d_core
71+
${PROJECT_NAME}::nav2_costmap_2d_client
7572
)
7673

7774
ament_add_test(test_collision_checker

0 commit comments

Comments
 (0)