Skip to content

Commit bc2ce53

Browse files
committedNov 23, 2022
2 parents 73cc628 + 26d0e3c commit bc2ce53

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed
 

‎CMakeLists.txt

+4-11
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,9 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
2121
option(BTCPP_SHARED_LIBS "Build shared libraries" ON)
2222
option(BTCPP_ENABLE_COROUTINES "Enable boost coroutines" ON)
2323
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)
3427

3528
option(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 )
207200
endif()
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})
212205
else()

‎tests/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
######################################################
22
# TESTS
33

4-
include_directories(include)
4+
include_directories(include ${PROJECT_SOURCE_DIR}/3rdparty)
55

66
set(BT_TESTS
77
src/action_test_node.cpp

‎tools/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.5)
22

3-
include_directories(${CMAKE_SOURCE_DIR}/3rdparty)
3+
include_directories(${PROJECT_SOURCE_DIR}/3rdparty)
44

55
add_executable(bt3_log_cat bt_log_cat.cpp )
66
target_link_libraries(bt3_log_cat ${BEHAVIOR_TREE_LIBRARY} )

0 commit comments

Comments
 (0)
Failed to load comments.