vcpkg/ports/range-v3/portfile.cmake

14 lines
854 B
CMake
Raw Normal View History

2016-09-18 20:50:08 -07:00
include(vcpkg_common_functions)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/Range-V3-VS2015-ede9ad367fd5ec764fecb039c874614bd908e6b6)
2016-09-18 20:50:08 -07:00
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/Microsoft/Range-V3-VS2015/archive/ede9ad367fd5ec764fecb039c874614bd908e6b6.zip"
2016-09-18 20:50:08 -07:00
FILENAME "range-v3-ede9ad367fd5ec764fecb039c874614bd908e6b6.zip"
2016-09-22 22:13:09 +02:00
SHA512 e978c7694471d8616c248647b77689f377b3e2517347abde8629b140e5994de8bf686565a24cdd7dd222f325d43b775f5e478c91220dce75313985499b134637
2016-09-18 20:50:08 -07:00
)
vcpkg_extract_source_archive(${ARCHIVE})
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/range-v3)
2016-09-18 20:50:08 -07:00
file(RENAME ${CURRENT_PACKAGES_DIR}/share/range-v3/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/range-v3/copyright)
file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.hpp")
2016-09-18 20:50:08 -07:00
vcpkg_copy_pdbs()