vcpkg/ports/doctest/portfile.cmake

16 lines
551 B
CMake
Raw Normal View History

2016-10-27 03:22:15 +08:00
#header-only library
2016-09-22 14:02:02 +08:00
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO onqtam/doctest
2017-11-30 05:12:11 +08:00
REF 1.2.6
SHA512 bee59e9e18a474b9a7883e0c506a1133fdd382d3ecbe010c0402399d6c48572508bfa347a2196908d846e345508c564f758b17c268a19b65968f5c2ff87b25a4
HEAD_REF master
2016-09-22 14:02:02 +08:00
)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/doctest RENAME copyright)
2016-09-22 14:02:02 +08:00
# Copy header file
file(INSTALL ${SOURCE_PATH}/doctest/doctest.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/doctest)