diff options
Diffstat (limited to 'vcpkg/ports/gtl')
| -rw-r--r-- | vcpkg/ports/gtl/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/gtl/vcpkg.json | 13 |
2 files changed, 38 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) diff --git a/vcpkg/ports/gtl/vcpkg.json b/vcpkg/ports/gtl/vcpkg.json new file mode 100644 index 0000000..95e81db --- /dev/null +++ b/vcpkg/ports/gtl/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "gtl", + "version": "1.2.0", + "description": "Greg's Template Library of useful classes.", + "homepage": "https://github.com/greg7mdp/gtl", + "license": "Apache-2.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] +} |