Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Nov 23, 2022
2 parents 73cc628 + 26d0e3c commit bc2ce53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
15 changes: 4 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,9 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
option(BTCPP_SHARED_LIBS "Build shared libraries" ON)
option(BTCPP_ENABLE_COROUTINES "Enable boost coroutines" ON)
option(BTCPP_MANUAL_SELECTOR "Build manual selector node" ON)

if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR} )
option(BTCPP_EXAMPLES "Build tutorials and examples" ON)
option(BTCPP_UNIT_TESTS "Build the unit tests" ON)
option(BTCPP_BUILD_TOOLS "Build commandline tools" ON)
else()
option(BTCPP_EXAMPLES "Build tutorials and examples" OFF)
option(BTCPP_UNIT_TESTS "Build the unit tests" OFF)
option(BTCPP_BUILD_TOOLS "Build commandline tools" OFF)
endif()
option(BTCPP_BUILD_TOOLS "Build commandline tools" ON)
option(BTCPP_EXAMPLES "Build tutorials and examples" ON)
option(BTCPP_UNIT_TESTS "Build the unit tests" ON)

option(USE_V3_COMPATIBLE_NAMES "Use some alias to compile more easily old 3.x code" OFF)

Expand Down Expand Up @@ -206,7 +199,7 @@ if (WIN32)
list(APPEND BT_SOURCE src/shared_library_WIN.cpp )
endif()

if (BUILD_SHARED_LIBS)
if (BTCPP_SHARED_LIBS)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
add_library(${BEHAVIOR_TREE_LIBRARY} SHARED ${BT_SOURCE})
else()
Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
######################################################
# TESTS

include_directories(include)
include_directories(include ${PROJECT_SOURCE_DIR}/3rdparty)

set(BT_TESTS
src/action_test_node.cpp
Expand Down
2 changes: 1 addition & 1 deletion tools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.5)

include_directories(${CMAKE_SOURCE_DIR}/3rdparty)
include_directories(${PROJECT_SOURCE_DIR}/3rdparty)

add_executable(bt3_log_cat bt_log_cat.cpp )
target_link_libraries(bt3_log_cat ${BEHAVIOR_TREE_LIBRARY} )
Expand Down

0 comments on commit bc2ce53

Please sign in to comment.