Skip to content

Commit

Permalink
init vsag-sys
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenchi <[email protected]>
  • Loading branch information
zhongzc committed Oct 22, 2024
0 parents commit 834ff0a
Show file tree
Hide file tree
Showing 13 changed files with 1,901 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .gitignore
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/
24 changes: 24 additions & 0 deletions CMakeLists.txt
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)
Loading

0 comments on commit 834ff0a

Please sign in to comment.