2021-04-08 04:25:51 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO boost-ext/ut
|
2024-03-05 17:57:41 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 6894767ddae9d3ddd7aac2f77565f653e5051d213d39129a149405c6441a5f20a2878a5f548ad8d4ca37f70e44c6360c447f12df9c870149f9ed57a281214c24
|
2021-04-08 04:25:51 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-04-19 07:35:37 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-04-08 04:25:51 +08:00
|
|
|
OPTIONS
|
2023-07-14 02:39:13 +08:00
|
|
|
-DBOOST_UT_ALLOW_CPM_USE=OFF
|
2021-04-08 04:25:51 +08:00
|
|
|
-DBOOST_UT_BUILD_BENCHMARKS=OFF
|
|
|
|
-DBOOST_UT_BUILD_EXAMPLES=OFF
|
|
|
|
-DBOOST_UT_BUILD_TESTS=OFF
|
2022-10-04 05:04:17 +08:00
|
|
|
-DINCLUDE_INSTALL_DIR=include
|
2024-03-05 17:57:41 +08:00
|
|
|
-DBOOST_UT_DISABLE_MODULE=ON
|
2021-04-08 04:25:51 +08:00
|
|
|
)
|
2022-04-19 07:35:37 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-04-08 04:25:51 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2023-07-14 02:39:13 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME ut CONFIG_PATH lib/cmake/ut-${VERSION})
|
2021-04-08 04:25:51 +08:00
|
|
|
|
2022-04-19 07:35:37 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
2021-04-08 04:25:51 +08:00
|
|
|
)
|
2022-04-19 07:35:37 +08:00
|
|
|
|
2024-03-05 17:57:41 +08:00
|
|
|
|
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
|
|
|
|
|
2023-07-14 02:39:13 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|