2023-01-05 04:44:15 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO felixguendling/cista
|
|
|
|
REF "v${VERSION}"
|
2024-06-27 11:17:37 +08:00
|
|
|
SHA512 581280b3bc2e762614034058653ddf21ef50dc19b8f49ee9a15bd1f5a4578b53f0bc03e55a1a92fe8d43836be2ed4932c8b9f1d8ed608b6d4d8b8d90426e8535
|
2023-01-05 04:44:15 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-08-18 02:08:01 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
|
|
|
|
2023-01-05 04:44:15 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DCISTA_INSTALL=ON
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cista)
|
|
|
|
|
2023-08-18 02:08:01 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2023-01-05 04:44:15 +08:00
|
|
|
|
2023-08-18 02:08:01 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|