2023-09-19 01:00:23 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO BehaviorTree/BehaviorTree.CPP
|
|
|
|
REF ${VERSION}
|
|
|
|
SHA512 f2ee647c734e39e50f92405c5dc9fd2876602ff074a86416959fbf6548e37130d35f312cafb084ca4a40da7ee81386502a75ad839ce99a2859c30ff187820fdf
|
|
|
|
HEAD_REF master
|
2020-08-21 15:33:35 -07:00
|
|
|
PATCHES
|
2023-05-12 01:32:00 +08:00
|
|
|
fix-x86_build.patch
|
2020-08-21 15:33:35 -07:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-08-24 10:33:57 -07:00
|
|
|
OPTIONS
|
2020-08-31 22:36:25 -07:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_ament_cmake=1
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Curses=1
|
2023-05-12 01:32:00 +08:00
|
|
|
-DBTCPP_EXAMPLES=OFF
|
|
|
|
-DBTCPP_UNIT_TESTS=OFF
|
|
|
|
-DBTCPP_BUILD_TOOLS=OFF
|
|
|
|
-DBTCPP_GROOT_INTERFACE=OFF
|
|
|
|
-DBTCPP_SQLITE_LOGGING=OFF
|
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
CMAKE_DISABLE_FIND_PACKAGE_Curses
|
2020-08-21 15:33:35 -07:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2023-05-12 01:32:00 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/behaviortree_cpp PACKAGE_NAME behaviortree_cpp)
|
2020-08-21 15:33:35 -07:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-05-12 01:32:00 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2020-08-21 15:33:35 -07:00
|
|
|
|
2023-05-12 01:32:00 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
endif()
|