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)
21
21
option (BTCPP_SHARED_LIBS "Build shared libraries" ON )
22
22
option (BTCPP_ENABLE_COROUTINES "Enable boost coroutines" ON )
23
23
option (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 )
34
27
35
28
option (USE_V3_COMPATIBLE_NAMES "Use some alias to compile more easily old 3.x code" OFF )
36
29
@@ -206,7 +199,7 @@ if (WIN32)
206
199
list (APPEND BT_SOURCE src/shared_library_WIN.cpp )
207
200
endif ()
208
201
209
- if (BUILD_SHARED_LIBS )
202
+ if (BTCPP_SHARED_LIBS )
210
203
set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON )
211
204
add_library (${BEHAVIOR_TREE_LIBRARY} SHARED ${BT_SOURCE} )
212
205
else ()
Original file line number Diff line number Diff line change 1
1
######################################################
2
2
# TESTS
3
3
4
- include_directories (include )
4
+ include_directories (include ${PROJECT_SOURCE_DIR} /3rdparty )
5
5
6
6
set (BT_TESTS
7
7
src/action_test_node.cpp
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.5)
2
2
3
- include_directories (${CMAKE_SOURCE_DIR } /3rdparty)
3
+ include_directories (${PROJECT_SOURCE_DIR } /3rdparty)
4
4
5
5
add_executable (bt3_log_cat bt_log_cat.cpp )
6
6
target_link_libraries (bt3_log_cat ${BEHAVIOR_TREE_LIBRARY} )
0 commit comments