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/jiacai2050/vsag GIT_TAG fix-static ) FetchContent_MakeAvailable(vsag) add_library(vsag_wrapper STATIC src/wrapper.cpp) target_include_directories(vsag_wrapper PUBLIC $ $ ${vsag_SOURCE_DIR}/include ) # link with vsag target_link_libraries(vsag_wrapper PUBLIC vsag_static)