2020-01-03 05:40:50 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mmahnic/argumentum
|
2020-03-11 06:46:53 +08:00
|
|
|
REF v0.3.1
|
|
|
|
SHA512 96f3a2077dacabf95d06120e24a50147b153090ddb0b6da17c960f8fe6724567bcd3337409f4729e1d8d15058550ed9f34a861da16fb6c999207554154e411c1
|
2020-01-03 05:40:50 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-01-03 05:40:50 +08:00
|
|
|
OPTIONS
|
|
|
|
-DARGUMENTUM_BUILD_EXAMPLES=OFF
|
|
|
|
-DARGUMENTUM_BUILD_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Argumentum)
|
2020-01-03 05:40:50 +08:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-01-03 05:40:50 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-03-07 07:44:04 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
2020-01-03 05:40:50 +08:00
|
|
|
RENAME copyright)
|