From 4235369b6d03b5c79b528c6b57183c0584979b29 Mon Sep 17 00:00:00 2001 From: "David V. Lu" Date: Wed, 7 May 2025 21:18:24 -0400 Subject: [PATCH 1/3] [kilted] Update deprecated call to ament_target_dependencies --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e08aa6..3d48d47 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,7 @@ target_include_directories(${PROJECT_NAME} PUBLIC $ PUBLIC $ ) -ament_target_dependencies(${PROJECT_NAME} ${THIS_PACKAGE_INCLUDE_DEPENDS}) +target_link_libraries(${PROJECT_NAME} PUBLIC ${THIS_PACKAGE_INCLUDE_DEPENDS}) # Demo executable add_executable(${PROJECT_NAME}_demo @@ -55,7 +55,7 @@ add_executable(${PROJECT_NAME}_demo target_link_libraries(${PROJECT_NAME}_demo ${PROJECT_NAME} ) -ament_target_dependencies(${PROJECT_NAME}_demo ${THIS_PACKAGE_INCLUDE_DEPENDS}) +target_link_libraries(${PROJECT_NAME}_demo PUBLIC ${THIS_PACKAGE_INCLUDE_DEPENDS}) # Exports From 984c6079d02fecdad7741cb4c75b2f2f47335e92 Mon Sep 17 00:00:00 2001 From: "David V. Lu" Date: Wed, 7 May 2025 22:05:52 -0400 Subject: [PATCH 2/3] Combine target_link_libraries --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d48d47..41eb5f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,8 +54,8 @@ add_executable(${PROJECT_NAME}_demo ) target_link_libraries(${PROJECT_NAME}_demo ${PROJECT_NAME} + PUBLIC ${THIS_PACKAGE_INCLUDE_DEPENDS}) ) -target_link_libraries(${PROJECT_NAME}_demo PUBLIC ${THIS_PACKAGE_INCLUDE_DEPENDS}) # Exports From aca277d148b340b0d81914c614ee4ea2734ff345 Mon Sep 17 00:00:00 2001 From: "David V. Lu" Date: Fri, 9 May 2025 12:56:12 -0400 Subject: [PATCH 3/3] Fix targets --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 41eb5f7..cc5a58b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,7 @@ target_include_directories(${PROJECT_NAME} PUBLIC $ PUBLIC $ ) -target_link_libraries(${PROJECT_NAME} PUBLIC ${THIS_PACKAGE_INCLUDE_DEPENDS}) +target_link_libraries(${PROJECT_NAME} PUBLIC ${geometry_msgs_TARGETS} ${std_msgs_TARGETS} ${trajectory_msgs_TARGETS} ${visualization_msgs_TARGETS} moveit_core::moveit_collision_detection moveit_ros_planning::kinematics_parameters moveit_ros_planning::moveit_collision_plugin_loader rclcpp::rclcpp tf2_eigen::tf2_eigen tf2_ros::tf2_ros) # Demo executable add_executable(${PROJECT_NAME}_demo @@ -54,7 +54,7 @@ add_executable(${PROJECT_NAME}_demo ) target_link_libraries(${PROJECT_NAME}_demo ${PROJECT_NAME} - PUBLIC ${THIS_PACKAGE_INCLUDE_DEPENDS}) +PUBLIC ${geometry_msgs_TARGETS} ${std_msgs_TARGETS} ${trajectory_msgs_TARGETS} ${visualization_msgs_TARGETS} moveit_core::moveit_collision_detection moveit_ros_planning::kinematics_parameters moveit_ros_planning::moveit_collision_plugin_loader rclcpp::rclcpp tf2_eigen::tf2_eigen tf2_ros::tf2_ros )