2016-09-22 14:02:02 +08:00
|
|
|
include(vcpkg_common_functions)
|
2019-02-17 06:45:10 +08:00
|
|
|
|
2017-05-19 11:03:52 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO onqtam/doctest
|
2019-03-25 06:32:03 +08:00
|
|
|
REF 2.3.1
|
|
|
|
SHA512 b8cb502054e05d6e348fa008b44eb49e7932e0ee15e413953ecfd3092ebc490e5924ee669f22abb85e349033e307e7e19ad44b0c6a98973a8ffe4c7aef9017b2
|
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(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
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
|
|
|
|
2019-02-17 06:45:10 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
|
|
|
configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/doctest/copyright COPYONLY)
|