@@ -13,7 +13,7 @@ if( CATKIN_DEVEL_PREFIX OR CATKIN_BUILD_BINARY_PACKAGE)
13
13
endif ()
14
14
15
15
if (catkin_FOUND )
16
- find_package (catkin REQUIRED COMPONENTS behaviortree_cpp rosbag rosbag_storage roscpp )
16
+ find_package (catkin REQUIRED COMPONENTS behaviortree_cpp_v3 rosbag rosbag_storage roscpp )
17
17
18
18
message (STATUS "------------------------------------------------" )
19
19
message (STATUS "BehaviourTreeEditor is being built using CATKIN." )
@@ -22,7 +22,7 @@ if(catkin_FOUND)
22
22
catkin_package (
23
23
INCLUDE_DIRS
24
24
LIBRARIES qt_node_editor
25
- CATKIN_DEPENDS behaviortree_cpp
25
+ CATKIN_DEPENDS behaviortree_cpp_v3
26
26
DEPENDS
27
27
)
28
28
endif (catkin_FOUND )
@@ -50,8 +50,13 @@ add_subdirectory( QtNodeEditor )
50
50
set (BUILD_EXAMPLES OFF CACHE BOOL "" )
51
51
set (BUILD_UNIT_TESTS OFF CACHE BOOL "" )
52
52
set (BUILD_TOOLS OFF CACHE BOO "" )
53
- add_subdirectory ( depend/BehaviorTree.CPP )
54
- include_directories ( depend/BehaviorTree.CPP/include )
53
+
54
+ if (NOT catkin_FOUND )
55
+ # use git submodule only if you are not compiling with catkin
56
+ add_subdirectory ( depend/BehaviorTree.CPP )
57
+ include_directories ( depend/BehaviorTree.CPP/include )
58
+ endif ()
59
+
55
60
##########################################
56
61
57
62
set (APP_CPPS
@@ -109,9 +114,9 @@ add_library(behavior_tree_editor
109
114
)
110
115
111
116
if ( ZMQ_FOUND )
112
- target_link_libraries (behavior_tree_editor QtNodeEditor zmq )
117
+ target_link_libraries (behavior_tree_editor QtNodeEditor zmq ${catkin_LIBRARIES} )
113
118
else ()
114
- target_link_libraries (behavior_tree_editor QtNodeEditor )
119
+ target_link_libraries (behavior_tree_editor QtNodeEditor ${catkin_LIBRARIES} )
115
120
endif ()
116
121
117
122
0 commit comments