vcpkg/ports/args/portfile.cmake

27 lines
894 B
CMake
Raw Normal View History

2018-01-05 10:46:58 -08:00
#header-only library
include(vcpkg_common_functions)
2018-02-23 22:20:39 -08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Taywee/args
2018-10-11 22:03:05 -07:00
REF 24868affc8f7f88ce8781bc6a21c5c7d5067c508
SHA512 123e72a0f1d275de565443f818f37d3cf38ca43056802395aecf89d3cd913f628675c742cd136bf5cd25347ce783a34d938e2d97b6acf52e7479737dd0b8da33
2018-02-23 22:20:39 -08:00
HEAD_REF master
2018-01-05 10:46:58 -08:00
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)
2018-01-05 10:46:58 -08:00
# Put the licence file where vcpkg expects it
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/args)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/args/LICENSE ${CURRENT_PACKAGES_DIR}/share/args/copyright)
2018-01-05 10:46:58 -08:00
# Copy the args header files
2018-02-23 22:20:39 -08:00
file(INSTALL ${SOURCE_PATH}/ DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN "*.hxx")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/examples ${CURRENT_PACKAGES_DIR}/include/test)
2018-01-05 10:46:58 -08:00
vcpkg_copy_pdbs()