diff options
Diffstat (limited to 'vcpkg/ports/kdalgorithms')
| -rw-r--r-- | vcpkg/ports/kdalgorithms/portfile.cmake | 15 | ||||
| -rw-r--r-- | vcpkg/ports/kdalgorithms/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/kdalgorithms/vcpkg.json | 7 |
3 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/kdalgorithms/portfile.cmake b/vcpkg/ports/kdalgorithms/portfile.cmake new file mode 100644 index 0000000..7c025d6 --- /dev/null +++ b/vcpkg/ports/kdalgorithms/portfile.cmake @@ -0,0 +1,15 @@ +# header-only library +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO KDAB/KDAlgorithms + REF ${VERSION} + SHA512 5d877b8aa16aae870276a542554aa1b39ae2daa863e77ebaa248ca1427a92179611dd7c7cd98e88fc6a406905f404f052f9c891b8a49d64582dfc2ba857118f6 +) + +file(INSTALL "${SOURCE_PATH}/src/kdalgorithms.h" "${SOURCE_PATH}/src/kdalgorithms_bits" + DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") + +file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" + DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/vcpkg/ports/kdalgorithms/usage b/vcpkg/ports/kdalgorithms/usage new file mode 100644 index 0000000..11c4103 --- /dev/null +++ b/vcpkg/ports/kdalgorithms/usage @@ -0,0 +1,4 @@ +kdalgorithms is header-only and can be used from CMake via: + + find_path(KDALGORITHMS_INCLUDE_DIRS "kdalgorithms.h" PATH_SUFFIXES kdalgorithms) + target_include_directories(main PRIVATE ${KDALGORITHMS_INCLUDE_DIRS}) diff --git a/vcpkg/ports/kdalgorithms/vcpkg.json b/vcpkg/ports/kdalgorithms/vcpkg.json new file mode 100644 index 0000000..3d991ac --- /dev/null +++ b/vcpkg/ports/kdalgorithms/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "kdalgorithms", + "version": "1.4", + "description": "KDAB's algorithm helpers for C++14 and up", + "homepage": "https://github.com/KDAB/KDAlgorithms", + "license": "MIT" +} |