-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
60 lines (50 loc) · 2.22 KB
/
CMakeLists.txt
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
51
52
53
54
55
56
57
58
59
################################################################################
# Set minimum required version of cmake, project name and compile options
################################################################################
cmake_minimum_required(VERSION 3.5)
project(turtlebot3_multi_robot)
################################################################################
# Default to C++14
################################################################################
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()
################################################################################
# Find ament packages and libraries for ament and system dependencies
################################################################################
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(behaviortree_cpp_v3 REQUIRED)
################################################################################
# Include directories
################################################################################
include_directories(
include
)
################################################################################
# Add executable
################################################################################
add_executable(behavior_tree_node src/behavior_trees/tree.cpp)
################################################################################
# Link libraries
################################################################################
ament_target_dependencies(behavior_tree_node
rclcpp
std_msgs
behaviortree_cpp_v3
)
################################################################################
# Install
################################################################################
install(TARGETS behavior_tree_node
DESTINATION lib/${PROJECT_NAME}
)
install(DIRECTORY launch models rviz urdf worlds params
DESTINATION share/${PROJECT_NAME}/
)
ament_environment_hooks("${CMAKE_CURRENT_SOURCE_DIR}/env-hooks/multi_robot.dsv.in")
################################################################################
# Ament package
################################################################################
ament_package()