diff options
Diffstat (limited to 'vcpkg/ports/hnswlib')
| -rw-r--r-- | vcpkg/ports/hnswlib/portfile.cmake | 22 | ||||
| -rw-r--r-- | vcpkg/ports/hnswlib/vcpkg.json | 17 |
2 files changed, 39 insertions, 0 deletions
diff --git a/vcpkg/ports/hnswlib/portfile.cmake b/vcpkg/ports/hnswlib/portfile.cmake new file mode 100644 index 0000000..d02ecd2 --- /dev/null +++ b/vcpkg/ports/hnswlib/portfile.cmake @@ -0,0 +1,22 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO nmslib/hnswlib + REF "v${VERSION}" + SHA512 2bac86547374ef762083f33b5209c7c02c89b3270442dda2bc80fbc7b6a33766cb81248841deddc2ca1f7c49e3e19889955f45c91d0b601d1c883a5e1c930794 + HEAD_REF master +) + +set(VCPKG_BUILD_TYPE "release") # header-only port + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DHNSWLIB_EXAMPLES=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/hnswlib) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/hnswlib/vcpkg.json b/vcpkg/ports/hnswlib/vcpkg.json new file mode 100644 index 0000000..9eb1503 --- /dev/null +++ b/vcpkg/ports/hnswlib/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "hnswlib", + "version": "0.8.0", + "description": "Header-only library for fast approximate nearest neighbors", + "homepage": "https://github.com/nmslib/hnswlib", + "license": "Apache-2.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |