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-12-22 06:05:30 +08:00
|
|
|
REF 2.3.6
|
|
|
|
SHA512 e09d61331e9d7dc11e0c93f377c26f9fcac66c8bb5f02731028d396fb595770580c66b5e20b2dba4a203d9956637a0a8a1e43c63cc90452b103c3144e83dbc1e
|
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)
|
2019-06-25 04:36:41 +08:00
|
|
|
|
|
|
|
# CMake integration test
|
|
|
|
vcpkg_test_cmake(PACKAGE_NAME ${PORT})
|