2018-01-06 02:46:58 +08:00
|
|
|
#header-only library
|
|
|
|
include(vcpkg_common_functions)
|
2018-02-24 14:20:39 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Taywee/args
|
2019-04-16 13:30:11 +08:00
|
|
|
REF 6cd243def4b335efa5a83acb4d29aee482970d2e
|
|
|
|
SHA512 112b98d37d0a3f5bd2993e0e7fb64545391a368e43a87d56e0129cc8f6edc9158d6bd105dc33e3263ff1c48a584ef2dc0fadcd1e8d810b06c716d703c5a1079f
|
2018-02-24 14:20:39 +08:00
|
|
|
HEAD_REF master
|
2018-01-06 02:46:58 +08:00
|
|
|
)
|
|
|
|
|
2018-05-09 09:48:20 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
2018-01-06 02:46:58 +08:00
|
|
|
# Put the licence file where vcpkg expects it
|
2018-05-09 09:48:20 +08:00
|
|
|
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-06 02:46:58 +08:00
|
|
|
|
|
|
|
# Copy the args header files
|
2018-02-24 14: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-06 02:46:58 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|