2016-10-21 05:17:28 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2017-08-11 06:03:15 +08:00
|
|
|
set(CATCH_VERSION v1.9.7)
|
2016-10-21 05:17:28 +08:00
|
|
|
vcpkg_download_distfile(HEADER
|
2017-06-16 01:18:14 +08:00
|
|
|
URLS "https://github.com/philsquared/Catch/releases/download/${CATCH_VERSION}/catch.hpp"
|
|
|
|
FILENAME "catch-${CATCH_VERSION}.hpp"
|
2017-08-11 06:03:15 +08:00
|
|
|
SHA512 c61fc39d9388a45d9c601c05dafeeba0e7887476b3b28e30a6ab47cb00e062be626c12d9712caa49e0cbfa3fd7517874137a24e8c293d6dd23353ea87f9fbf5c
|
2016-10-21 05:17:28 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_download_distfile(LICENSE
|
2017-06-16 01:18:14 +08:00
|
|
|
URLS "https://raw.githubusercontent.com/philsquared/Catch/${CATCH_VERSION}/LICENSE.txt"
|
|
|
|
FILENAME "catch-LICENSE-${CATCH_VERSION}.txt"
|
2016-10-21 05:17:28 +08:00
|
|
|
SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
|
|
|
|
)
|
|
|
|
|
2017-06-16 01:18:14 +08:00
|
|
|
file(INSTALL ${HEADER} DESTINATION ${CURRENT_PACKAGES_DIR}/include RENAME catch.hpp)
|
|
|
|
file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/catch RENAME copyright)
|