-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
13 changed files
with
1,901 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
/target/ | ||
# also ignore if it's a symbolic link | ||
/target | ||
|
||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
# Mac DS_Store | ||
**/*.DS_Store | ||
|
||
debug/ | ||
|
||
# MSVC Windows builds of rustc generate these, which store debugging information | ||
*.pdb | ||
|
||
# JetBrains IDE config directory | ||
.idea/ | ||
*.iml | ||
|
||
# VSCode IDE config directory | ||
.vscode/ | ||
|
||
# Logs | ||
**/__unittest_logs | ||
logs/ | ||
|
||
# cpython's generated python byte code | ||
**/__pycache__/ | ||
|
||
# Benchmark dataset | ||
benchmarks/data | ||
|
||
# dotenv | ||
.env | ||
|
||
# dashboard files | ||
!/src/servers/dashboard/VERSION | ||
/src/servers/dashboard/* | ||
|
||
# Vscode workspace | ||
*.code-workspace | ||
|
||
venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.11) | ||
project(vsag_wrapper) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
|
||
# download and build vsag | ||
include(FetchContent) | ||
FetchContent_Declare( | ||
vsag | ||
GIT_REPOSITORY https://github.com/alipay/vsag | ||
GIT_TAG v0.11.6 | ||
) | ||
FetchContent_MakeAvailable(vsag) | ||
|
||
add_library(vsag_wrapper STATIC src/wrapper.cpp) | ||
|
||
target_include_directories(vsag_wrapper PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> | ||
$<INSTALL_INTERFACE:include> | ||
${vsag_SOURCE_DIR}/include | ||
) | ||
|
||
# link with vsag | ||
target_link_libraries(vsag_wrapper PUBLIC vsag) |
Oops, something went wrong.