File tree Expand file tree Collapse file tree 3 files changed +6
-13
lines changed Expand file tree Collapse file tree 3 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -21,16 +21,9 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
2121option (BTCPP_SHARED_LIBS "Build shared libraries" ON )
2222option (BTCPP_ENABLE_COROUTINES "Enable boost coroutines" ON )
2323option (BTCPP_MANUAL_SELECTOR "Build manual selector node" ON )
24-
25- if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR} )
26- option (BTCPP_EXAMPLES "Build tutorials and examples" ON )
27- option (BTCPP_UNIT_TESTS "Build the unit tests" ON )
28- option (BTCPP_BUILD_TOOLS "Build commandline tools" ON )
29- else ()
30- option (BTCPP_EXAMPLES "Build tutorials and examples" OFF )
31- option (BTCPP_UNIT_TESTS "Build the unit tests" OFF )
32- option (BTCPP_BUILD_TOOLS "Build commandline tools" OFF )
33- endif ()
24+ option (BTCPP_BUILD_TOOLS "Build commandline tools" ON )
25+ option (BTCPP_EXAMPLES "Build tutorials and examples" ON )
26+ option (BTCPP_UNIT_TESTS "Build the unit tests" ON )
3427
3528option (USE_V3_COMPATIBLE_NAMES "Use some alias to compile more easily old 3.x code" OFF )
3629
@@ -206,7 +199,7 @@ if (WIN32)
206199 list (APPEND BT_SOURCE src/shared_library_WIN.cpp )
207200endif ()
208201
209- if (BUILD_SHARED_LIBS )
202+ if (BTCPP_SHARED_LIBS )
210203 set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON )
211204 add_library (${BEHAVIOR_TREE_LIBRARY} SHARED ${BT_SOURCE} )
212205else ()
Original file line number Diff line number Diff line change 11######################################################
22# TESTS
33
4- include_directories (include )
4+ include_directories (include ${PROJECT_SOURCE_DIR} /3rdparty )
55
66set (BT_TESTS
77 src/action_test_node.cpp
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.5)
22
3- include_directories (${CMAKE_SOURCE_DIR } /3rdparty)
3+ include_directories (${PROJECT_SOURCE_DIR } /3rdparty)
44
55add_executable (bt3_log_cat bt_log_cat.cpp )
66target_link_libraries (bt3_log_cat ${BEHAVIOR_TREE_LIBRARY} )
You can’t perform that action at this time.
0 commit comments