@@ -17,24 +17,22 @@ find_package(plansys2_pddl_parser REQUIRED)
1717find_package (ament_index_cpp REQUIRED)
1818find_package (plansys2_bt_actions REQUIRED)
1919
20- if (NOT CMAKE_CXX_STANDARD)
21- set (CMAKE_CXX_STANDARD 17)
22- endif ()
20+
2321
2422set (dependencies
25- rclcpp
26- rclcpp_action
27- geometry_msgs
28- tf2_geometry_msgs
29- nav2_msgs
30- plansys2_msgs
31- plansys2_domain_expert
32- plansys2_executor
33- plansys2_planner
34- plansys2_problem_expert
35- plansys2_pddl_parser
36- ament_index_cpp
37- plansys2_bt_actions
23+ rclcpp::rclcpp
24+ rclcpp_action::rclcpp_action
25+ plansys2_domain_expert::plansys2_domain_expert
26+ plansys2_executor::plansys2_executor
27+ plansys2_planner::plansys2_planner
28+ plansys2_problem_expert::plansys2_problem_expert
29+ plansys2_pddl_parser::plansys2_pddl_parser
30+ ament_index_cpp::ament_index_cpp
31+ plansys2_bt_actions::plansys2_bt_actions
32+ ${geometry_msgs_TARGETS}
33+ ${tf2_geometry_msgs_TARGETS}
34+ ${nav2_msgs_TARGETS}
35+ ${plansys2_msgs_TARGETS}
3836)
3937
4038include_directories (include )
@@ -55,18 +53,18 @@ add_library(plansys2_approach_object_bt_node SHARED src/behavior_tree_nodes/Appr
5553list (APPEND plugin_libs plansys2_approach_object_bt_node)
5654
5755foreach (bt_plugin ${plugin_libs} )
58- ament_target_dependencies (${bt_plugin} ${dependencies} )
56+ target_link_libraries (${bt_plugin} PUBLIC ${dependencies} )
5957 target_compile_definitions (${bt_plugin} PRIVATE BT_PLUGIN_EXPORT)
6058endforeach ()
6159
6260add_executable (assemble_action_node src/assemble_action_node.cpp)
63- ament_target_dependencies (assemble_action_node ${dependencies} )
61+ target_link_libraries (assemble_action_node PUBLIC ${dependencies} )
6462
6563add_executable (assemble_controller_node src/assemble_controller_node.cpp)
66- ament_target_dependencies (assemble_controller_node ${dependencies} )
64+ target_link_libraries (assemble_controller_node PUBLIC ${dependencies} )
6765
6866add_executable (nav2_sim_node src/nav2_sim_node.cpp)
69- ament_target_dependencies (nav2_sim_node ${dependencies} )
67+ target_link_libraries (nav2_sim_node PUBLIC ${dependencies} )
7068
7169install (DIRECTORY launch pddl behavior_trees_xml config DESTINATION share/${PROJECT_NAME} )
7270
@@ -77,7 +75,7 @@ install(TARGETS
7775 ${plugin_libs}
7876 ARCHIVE DESTINATION lib
7977 LIBRARY DESTINATION lib
80- RUNTIME DESTINATION lib/ ${PROJECT_NAME}
78+ RUNTIME DESTINATION bin
8179)
8280
8381if (BUILD_TESTING)
@@ -87,6 +85,4 @@ if(BUILD_TESTING)
8785 find_package (ament_cmake_gtest REQUIRED)
8886endif ()
8987
90- ament_export_dependencies(${dependencies} )
91-
9288ament_package()
0 commit comments