diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/graaf | |
Diffstat (limited to 'vcpkg/ports/graaf')
| -rw-r--r-- | vcpkg/ports/graaf/portfile.cmake | 11 | ||||
| -rw-r--r-- | vcpkg/ports/graaf/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/graaf/vcpkg.json | 7 |
3 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/graaf/portfile.cmake b/vcpkg/ports/graaf/portfile.cmake new file mode 100644 index 0000000..b6aca51 --- /dev/null +++ b/vcpkg/ports/graaf/portfile.cmake @@ -0,0 +1,11 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO bobluppes/graaf + REF "v${VERSION}" + SHA512 e97eeadaab079cf6ff429d2580ea7be454a6583b8cc5cd231065c7c51a87d52d60457370dc9688a7e426ffc7ef79ad9670e44966dd367224a4124bcd5755f080 +) + +file(COPY "${SOURCE_PATH}/include/graaflib" DESTINATION ${CURRENT_PACKAGES_DIR}/include) + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md") diff --git a/vcpkg/ports/graaf/usage b/vcpkg/ports/graaf/usage new file mode 100644 index 0000000..ee78259 --- /dev/null +++ b/vcpkg/ports/graaf/usage @@ -0,0 +1,4 @@ +graaf is header-only and can be used from CMake via: + + find_path(GRAAF_INCLUDE_DIRS "graaflib/graph.h") + target_include_directories(main PRIVATE ${GRAAF_INCLUDE_DIRS}) diff --git a/vcpkg/ports/graaf/vcpkg.json b/vcpkg/ports/graaf/vcpkg.json new file mode 100644 index 0000000..443735b --- /dev/null +++ b/vcpkg/ports/graaf/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "graaf", + "version": "1.1.1", + "description": "A general-purpose lightweight C++ graph library", + "homepage": "https://bobluppes.github.io/graaf/", + "license": "MIT" +} |