@@ -9,7 +9,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
99option (BTCPP_SHARED_LIBS "Build shared libraries" ON )
1010option (BTCPP_BUILD_TOOLS "Build commandline tools" ON )
1111option (BTCPP_EXAMPLES "Build tutorials and examples" ON )
12- option (BTCPP_UNIT_TESTS "Build the unit tests" ON )
12+ option (BUILD_TESTING "Build the unit tests" ON )
1313option (BTCPP_GROOT_INTERFACE "Add Groot2 connection. Requires ZeroMQ" ON )
1414option (BTCPP_SQLITE_LOGGING "Add SQLite logging." ON )
1515
@@ -82,15 +82,6 @@ if ( ament_cmake_FOUND )
8282 message (STATUS "BehaviorTree is being built using AMENT." )
8383 message (STATUS "------------------------------------------" )
8484 include (cmake/ament_build.cmake)
85-
86- elseif ( CATKIN_DEVEL_PREFIX OR CATKIN_BUILD_BINARY_PACKAGE)
87-
88- add_definitions ( -DUSING_ROS )
89- message (STATUS "------------------------------------------" )
90- message (STATUS "BehaviorTree is being built using CATKIN." )
91- message (STATUS "------------------------------------------" )
92- include (cmake/catkin_build.cmake)
93- set (catkin_FOUND TRUE )
9485else ()
9586 message (STATUS "------------------------------------------" )
9687 message (STATUS "BehaviorTree is being built with conan." )
@@ -229,15 +220,16 @@ endif()
229220#############################################################
230221message ( STATUS "BTCPP_LIB_DESTINATION: ${BTCPP_LIB_DESTINATION} " )
231222message ( STATUS "BTCPP_INCLUDE_DESTINATION: ${BTCPP_INCLUDE_DESTINATION} " )
232- message ( STATUS "BTCPP_UNIT_TESTS: ${BTCPP_UNIT_TESTS} " )
233223
234- if (BTCPP_UNIT_TESTS OR BTCPP_EXAMPLES)
224+ if (BUILD_TESTING OR BTCPP_EXAMPLES)
235225 add_subdirectory (sample_nodes)
236226endif ()
237227
238228######################################################
239229
240- if (BTCPP_UNIT_TESTS)
230+ include (CTest)
231+ message ( STATUS "BUILD_TESTING: ${BUILD_TESTING} " )
232+ if (BUILD_TESTING)
241233 add_subdirectory (tests)
242234endif ()
243235
0 commit comments