vcpkg/ports/doctest/portfile.cmake

16 lines
672 B
CMake
Raw Normal View History

2016-10-26 12:22:15 -07:00
#header-only library
2016-09-21 23:02:02 -07:00
include(vcpkg_common_functions)
2017-05-18 10:52:12 +03:00
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/doctest-1.2.0)
2016-09-21 23:02:02 -07:00
vcpkg_download_distfile(ARCHIVE
2017-05-18 10:52:12 +03:00
URLS "https://github.com/onqtam/doctest/archive/1.2.0.zip"
FILENAME "doctest-1.2.0.zip"
SHA512 7b7ee66458a9d6e43aab57cced6c5e565bec414664300d80d8d08f5a90e19ecb9685762b3462927b7ecd890bd9fb0dde53b2b034e29e559f484d328cc6403aa7
2016-09-21 23:02:02 -07:00
)
vcpkg_extract_source_archive(${ARCHIVE})
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/doctest RENAME copyright)
2016-09-21 23:02:02 -07:00
# Copy header file
file(INSTALL ${SOURCE_PATH}/doctest/doctest.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/doctest)