-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
50 lines (37 loc) · 1.12 KB
/
CMakeLists.txt
File metadata and controls
50 lines (37 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
cmake_minimum_required(VERSION 3.16)
project(humanoid_bt)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(ament_cmake REQUIRED)
find_package(behaviortree_ros2 REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(btcpp_ros2_interfaces REQUIRED)
set(THIS_PACKAGE_DEPS
behaviortree_ros2::behaviortree_ros2
${btcpp_ros2_interfaces_TARGETS}
)
include_directories( include )
######################################################
# Simple example showing how to use and customize the BtExecutionServer
add_executable(
bt_runner
src/bt_runner.cpp
src/clients/base.cpp
)
target_link_libraries(bt_runner ${THIS_PACKAGE_DEPS})
######################################################
# INSTALL
install(TARGETS
bt_runner
DESTINATION lib/${PROJECT_NAME}
)
######################################################
# INSTALL Behavior.xml's, ROS config and launch files
install(DIRECTORY include/ DESTINATION include)
install(DIRECTORY
trees
launch
DESTINATION share/${PROJECT_NAME}/
)
ament_export_dependencies(behaviortree_ros2 btcpp_ros2_interfaces)
ament_package()