aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gtl/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/gtl/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/gtl/portfile.cmake')
-rw-r--r--vcpkg/ports/gtl/portfile.cmake25
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/gtl/portfile.cmake b/vcpkg/ports/gtl/portfile.cmake
new file mode 100644
index 0000000..47e707b
--- /dev/null
+++ b/vcpkg/ports/gtl/portfile.cmake
@@ -0,0 +1,25 @@
+#header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO greg7mdp/gtl
+ REF "v${VERSION}"
+ SHA512 068d37b7028979538884db5956a76e1de301202eb6b015104c6d8b246e894f9166b1d2b97aff47b2641b6948e7dd1cd20a74396f1a6d276e2ade74469d27c3c2
+ HEAD_REF main
+)
+
+# Use greg7mdp/gtl's own build process, skipping examples and tests
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DGTL_BUILD_TESTS=OFF
+ -DGTL_BUILD_EXAMPLES=OFF
+ -DGTL_BUILD_BENCHMARKS=OFF
+)
+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)