2020-08-22 06:33:35 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2023-05-12 01:32:00 +08:00
|
|
|
URLS "https://github.com/BehaviorTree/BehaviorTree.CPP/archive/${VERSION}.tar.gz"
|
|
|
|
FILENAME "BehaviorTree.CPP.${VERSION}.tar.gz"
|
|
|
|
SHA512 4505c4c8798ccbbc02f58320810eb86e791fb6ef57d8c85882e62bd2b509b41e0549dc311ed61926a873b5b956eda979efda488f01d00746e1e8db559f60253c
|
2020-08-22 06:33:35 +08:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
|
|
|
ARCHIVE "${ARCHIVE}"
|
2020-08-22 06:33:35 +08:00
|
|
|
PATCHES
|
2023-05-12 01:32:00 +08:00
|
|
|
fix-x86_build.patch
|
2020-08-22 06:33:35 +08:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-08-25 01:33:57 +08:00
|
|
|
OPTIONS
|
2020-09-01 13:36:25 +08: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-22 06:33:35 +08: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-22 06:33:35 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-05-12 01:32:00 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2020-08-22 06:33:35 +08: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()
|