46 lines
1.1 KiB
CMake
46 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 3.5)
|
|
project(rbs_task_planner)
|
|
|
|
find_package(ament_cmake REQUIRED)
|
|
find_package(plansys2_msgs REQUIRED)
|
|
find_package(plansys2_domain_expert REQUIRED)
|
|
find_package(plansys2_executor REQUIRED)
|
|
find_package(plansys2_planner REQUIRED)
|
|
find_package(plansys2_problem_expert REQUIRED)
|
|
find_package(plansys2_pddl_parser REQUIRED)
|
|
find_package(ament_index_cpp REQUIRED)
|
|
find_package(plansys2_bt_actions REQUIRED)
|
|
find_package(behavior_tree REQUIRED)
|
|
find_package(test_msgs REQUIRED)
|
|
|
|
if (NOT CMAKE_CXX_STANDARD)
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
endif()
|
|
|
|
set(dependencies
|
|
plansys2_msgs
|
|
plansys2_domain_expert
|
|
plansys2_executor
|
|
plansys2_planner
|
|
plansys2_problem_expert
|
|
plansys2_pddl_parser
|
|
ament_index_cpp
|
|
plansys2_bt_actions
|
|
behavior_tree
|
|
test_msgs
|
|
)
|
|
|
|
install(DIRECTORY launch domain problems config DESTINATION share/${PROJECT_NAME})
|
|
|
|
if(BUILD_TESTING)
|
|
find_package(ament_lint_auto REQUIRED)
|
|
ament_lint_auto_find_test_dependencies()
|
|
|
|
find_package(ament_cmake_gtest REQUIRED)
|
|
endif()
|
|
|
|
ament_export_dependencies(${dependencies})
|
|
|
|
ament_package()
|
|
|
|
|