Skip to content

Commit a47850e

Browse files
authored
Replace ament_target_dependencies with target_link_libraries (#69)
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
1 parent 10d45b8 commit a47850e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoware_utils_tf/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ autoware_package()
77
if(BUILD_TESTING)
88
file(GLOB_RECURSE test_files test/*.cpp)
99
ament_add_ros_isolated_gtest(test_${PROJECT_NAME} ${test_files})
10-
ament_target_dependencies(test_${PROJECT_NAME}
11-
${${PROJECT_NAME}_FOUND_BUILD_DEPENDS}
12-
${${PROJECT_NAME}_FOUND_TEST_DEPENDS}
10+
target_include_directories(test_${PROJECT_NAME} PUBLIC ${autoware_utils_geometry_INCLUDE_DIRS})
11+
target_link_libraries(test_${PROJECT_NAME}
12+
rclcpp::rclcpp ${geometry_msgs_TARGETS} tf2_ros::tf2_ros ${autoware_utils_geometry_LIBRARIES}
1313
)
1414
target_include_directories(test_${PROJECT_NAME} PRIVATE include)
1515
endif()

0 commit comments

Comments
 (0)