2022-03-11 14:25:53 -05:00
|
|
|
#header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO greg7mdp/gtl
|
2023-04-26 01:42:26 -04:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 c6ab1ae6bfdee7f4fa49ab6ea27138cfe7159b5b0fb918a65f27cc7fff74e632f2567508453d1767bc406ac6286ff3a12edeffd185b5b2acf0ef304d4175b86e
|
2022-03-11 14:25:53 -05:00
|
|
|
HEAD_REF main
|
|
|
|
)
|
|
|
|
|
|
|
|
# Use greg7mdp/gtl's own build process, skipping examples and tests
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-08-01 14:13:41 -04:00
|
|
|
OPTIONS
|
|
|
|
-DGTL_BUILD_TESTS=OFF
|
|
|
|
-DGTL_BUILD_EXAMPLES=OFF
|
|
|
|
-DGTL_BUILD_BENCHMARKS=OFF
|
2022-03-11 14:25:53 -05:00
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
# Delete redundant directories
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib" "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/share/doc")
|
|
|
|
|
|
|
|
# Put the licence file where vcpkg expects it
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|