@@ -2,8 +2,7 @@ cmake_minimum_required(VERSION 2.8)
22project (behavior_tree_core)
33
44set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 -pthread -Werror=return-type" )
5- set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR} /cmake" )
6-
5+ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR} /cmake" )
76#############################################################
87# http://answers.ros.org/question/230877/optionally-build-a-package-with-catkin/
98#
@@ -93,12 +92,19 @@ else()
9392endif ()
9493
9594######################################################
96- # COMPILING LIBRARY
95+ # LIBRARY
9796######################################################
9897add_library (behavior_tree_core STATIC ${BT_Source} )
9998target_compile_options (behavior_tree_core PRIVATE "-fPIC" )
10099target_link_libraries (behavior_tree_core dl)
101100
101+ ######################################################
102+ # EXAMPLES and TOOLS
103+ ######################################################
104+
105+ add_subdirectory (tools)
106+ add_subdirectory (sample_nodes)
107+ add_subdirectory (examples)
102108
103109######################################################
104110# TESTS
@@ -134,23 +140,6 @@ elseif(GTEST_FOUND)
134140
135141endif ()
136142
137- ######################################################
138- # COMPILING EXAMPLES and TOOLS
139- ######################################################
140-
141- add_executable (bt_log_cat tools/bt_log_cat.cpp )
142- target_link_libraries (bt_log_cat ${BEHAVIOR_TREE_LIBRARIES} )
143-
144- if ( ZMQ_FOUND )
145- add_executable (bt_recorder tools/bt_recorder.cpp )
146- target_link_libraries (bt_recorder ${BEHAVIOR_TREE_LIBRARIES} )
147- endif ()
148-
149- add_executable (bt_plugin_manifest tools/bt_plugin_manifest.cpp )
150- target_link_libraries (bt_plugin_manifest ${BEHAVIOR_TREE_LIBRARIES} )
151-
152143
153- add_subdirectory (sample_nodes)
154- add_subdirectory (examples)
155144
156145
0 commit comments