mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 14:07:29 +08:00
[hnswlib] new port (#29848)
* [hnswlib] new port * remove cmake config --------- Co-authored-by: Javier Matos Denizac <javier.matosd@gmail.com>
This commit is contained in:
parent
4d702071f5
commit
39f3c5c343
12
ports/hnswlib/portfile.cmake
Normal file
12
ports/hnswlib/portfile.cmake
Normal file
@ -0,0 +1,12 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO nmslib/hnswlib
|
||||
REF 359b2ba87358224963986f709e593d799064ace6 # v0.7.0
|
||||
SHA512 59a0c02bbe8f7389a2ecad9188a76eb3847b719a213d306093753c04e4eeb11d95e8e310aa03888364be475a2f2e6e7976bd81117517eef81eff2983379ac743
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY "${SOURCE_PATH}/hnswlib" 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")
|
4
ports/hnswlib/usage
Normal file
4
ports/hnswlib/usage
Normal file
@ -0,0 +1,4 @@
|
||||
hnswlib is header-only and can be used from CMake via:
|
||||
|
||||
find_path(HNSWLIB_INCLUDE_DIRS "hnswlib/hnswlib.h")
|
||||
target_include_directories(main PRIVATE ${HNSWLIB_INCLUDE_DIRS})
|
7
ports/hnswlib/vcpkg.json
Normal file
7
ports/hnswlib/vcpkg.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "hnswlib",
|
||||
"version": "0.7.0",
|
||||
"description": "Header-only library for fast approximate nearest neighbors",
|
||||
"homepage": "https://github.com/nmslib/hnswlib",
|
||||
"license": "Apache-2.0"
|
||||
}
|
@ -3052,6 +3052,10 @@
|
||||
"baseline": "1.0.2",
|
||||
"port-version": 4
|
||||
},
|
||||
"hnswlib": {
|
||||
"baseline": "0.7.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"hps": {
|
||||
"baseline": "2022-01-18",
|
||||
"port-version": 0
|
||||
|
9
versions/h-/hnswlib.json
Normal file
9
versions/h-/hnswlib.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "7053d263445d46410589894d921fa6c85fbf107c",
|
||||
"version": "0.7.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user