forked from BehaviorTree/BehaviorTree.ROS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
83 lines (61 loc) · 1.79 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
cmake_minimum_required(VERSION 3.5.1) # version on Ubuntu Trusty
project(behaviortree_ros)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
######################################################
set(ROS_DEPENDENCIES
roscpp std_msgs
behaviortree_cpp_v3
actionlib_msgs
actionlib
message_generation)
find_package(catkin REQUIRED COMPONENTS ${ROS_DEPENDENCIES} )
find_package(GTest)
add_message_files(
FILES
BehaviorTree.msg
NodeParameter.msg
NodeStatus.msg
StatusChange.msg
StatusChangeLog.msg
TreeNode.msg
)
add_service_files(
FILES
AddTwoInts.srv
)
add_action_files(
DIRECTORY action
FILES Fibonacci.action
)
generate_messages(
DEPENDENCIES
std_msgs
actionlib_msgs
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES
CATKIN_DEPENDS ${ROS_DEPENDENCIES}
)
include_directories( include ${catkin_INCLUDE_DIRS})
######################################################
# LIBRARIES
#header only for the time being
#add_library(behaviortree_ros ... )
#target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES})
######################################################
# TESTS
add_executable(test_bt test/test_bt.cpp)
add_dependencies(test_bt ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(test_bt ${catkin_LIBRARIES} )
add_executable(test_server test/test_server.cpp)
add_dependencies(test_server ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(test_server ${catkin_LIBRARIES} )
######################################################
# INSTALL
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})
######################################################
# EXAMPLES and TOOLS