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-05-02 08:20:23 +08:00
|
|
|
REF 623e52cb128cfc572ad4e79de8d5f8861d13d017
|
|
|
|
SHA512 b951caed125fd937549db6702de8615eac0f380026ea4de5937721143b0929f5aa47ecc8068b7d9689822d303b25d6350f00a8e6346a53d51a0ea40872488533
|
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
|
2019-05-02 08:20:23 +08:00
|
|
|
OPTIONS
|
|
|
|
-DARGS_BUILD_UNITTESTS=OFF
|
|
|
|
-DARGS_BUILD_EXAMPLE=OFF
|
2018-05-09 09:48:20 +08:00
|
|
|
)
|
|
|
|
|
2019-05-02 08:20:23 +08:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
|
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
|
|
|
|
2019-05-02 08:20:23 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
2018-01-06 02:46:58 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|