2020-01-02 22:40:50 +01:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mmahnic/argumentum
|
2023-04-05 04:17:35 +02:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 3efd7950de1f05d89900a3139d2cff8c4e68250d67edd4940ad0e035e037c6fd7c5bc0dc4a5c89382f8d73313d5a8d055c04cf9a8440bc38e42e50cae323a765
|
2020-01-02 22:40:50 +01:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-01-02 22:40:50 +01:00
|
|
|
OPTIONS
|
|
|
|
-DARGUMENTUM_BUILD_EXAMPLES=OFF
|
|
|
|
-DARGUMENTUM_BUILD_TESTS=OFF
|
2023-04-05 04:17:35 +02:00
|
|
|
-DARGUMENTUM_BUILD_STATIC_LIBS=ON
|
|
|
|
-DARGUMENTUM_INSTALL_HEADERONLY=OFF
|
2020-01-02 22:40:50 +01:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Argumentum)
|
2020-01-02 22:40:50 +01:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-01-02 22:40:50 +01:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-03-07 07:44:04 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
2020-01-02 22:40:50 +01:00
|
|
|
RENAME copyright)
|