-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
46 lines (37 loc) · 926 Bytes
/
CMakeLists.txt
File metadata and controls
46 lines (37 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cmake_minimum_required(VERSION 3.10)
project(ntvecdb)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include_directories(include)
set(LIB_SOURCES
src/bruteforce.cpp
src/hnsw.cpp
src/hnsw_serializer.cpp
src/vecdb_engine.cpp
)
add_executable(vecdb
src/vecdb_cli.cpp
${LIB_SOURCES}
)
add_executable(engine_sanity
tests/engine_sanity.cpp
${LIB_SOURCES}
)
add_executable(concurrency_test
tests/concurrency_test.cpp
${LIB_SOURCES}
)
add_executable(correctness
tests/correctness.cpp
${LIB_SOURCES}
)
add_executable(benchmark
tests/benchmark.cpp
${LIB_SOURCES}
)
find_package(Threads REQUIRED)
target_link_libraries(vecdb Threads::Threads)
target_link_libraries(engine_sanity Threads::Threads)
target_link_libraries(concurrency_test Threads::Threads)
target_link_libraries(correctness Threads::Threads)
target_link_libraries(benchmark Threads::Threads)