vcpkg/ports/args/portfile.cmake

26 lines
762 B
CMake
Raw Normal View History

2018-01-06 02:46:58 +08:00
#header-only library
2018-02-24 14:20:39 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Taywee/args
REF ae22269df734a2b0957a9ab4e37be41f61866dbe
SHA512 fe44bc6b7b81013ce649e3fa33c3d9503747a3c9044b70cf9eaf8ff780f2feabdabc261a33d29042daec19a598e3d60e318d3d415cbffb5fdcd2aabdd2ef39db
2018-02-24 14:20:39 +08:00
HEAD_REF master
2018-01-06 02:46:58 +08:00
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
2019-05-02 08:20:23 +08:00
OPTIONS
-DARGS_BUILD_UNITTESTS=OFF
-DARGS_BUILD_EXAMPLE=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
2019-05-02 08:20:23 +08:00
2018-01-06 02:46:58 +08:00
# Put the licence file where vcpkg expects it
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME 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()