vcpkg/ports/cista/portfile.cmake

25 lines
704 B
CMake
Raw Normal View History

2023-01-04 21:44:15 +01:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO felixguendling/cista
REF "v${VERSION}"
SHA512 bf5c5f527eb2b63775fd9f2e99f60a0ed19bd9805f38bf3e55f4995e01ecaf31c95dcd555520e12b3a1b9d039f702b9c9a4fdec74b9547136e336b5adf78689d
2023-01-04 21:44:15 +01:00
HEAD_REF master
)
set(VCPKG_BUILD_TYPE release) # header-only port
2023-01-04 21:44:15 +01:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCISTA_INSTALL=ON
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cista)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
2023-01-04 21:44:15 +01:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")