2017-05-19 11:03:52 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO onqtam/doctest
|
2021-10-06 07:12:22 +08:00
|
|
|
REF 2.4.6
|
|
|
|
SHA512 A5CCCF085AF946003140AF688F071A6407D42FC685324A537E3B704EF9DE0F2228BD06EABFD1DF8DA70DEC001420DD0B2813E5E4320B5C1DA450CB0AADD63788
|
2017-05-19 11:03:52 +08:00
|
|
|
HEAD_REF master
|
2016-09-22 14:02:02 +08:00
|
|
|
)
|
|
|
|
|
2019-02-17 06:45:10 +08:00
|
|
|
vcpkg_configure_cmake(
|
2021-10-06 07:12:22 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-02-17 06:45:10 +08:00
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DDOCTEST_WITH_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/doctest)
|
2016-09-22 14:02:02 +08:00
|
|
|
|
2021-10-06 07:12:22 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|