| 1 |
# Copyright (c) Meta Platforms, Inc. and affiliates. |
| 2 |
# |
| 3 |
# This source code is licensed under the MIT license found in the |
| 4 |
# LICENSE file in the root directory of this source tree. |
| 5 |
|
| 6 |
add_executable(1-Flat EXCLUDE_FROM_ALL 1-Flat.cpp) |
| 7 |
target_link_libraries(1-Flat PRIVATE faiss) |
| 8 |
|
| 9 |
add_executable(2-IVFFlat EXCLUDE_FROM_ALL 2-IVFFlat.cpp) |
| 10 |
target_link_libraries(2-IVFFlat PRIVATE faiss) |
| 11 |
|
| 12 |
add_executable(3-IVFPQ EXCLUDE_FROM_ALL 3-IVFPQ.cpp) |
| 13 |
target_link_libraries(3-IVFPQ PRIVATE faiss) |
| 14 |
|
| 15 |
add_executable(4-GPU EXCLUDE_FROM_ALL 4-GPU.cpp) |
| 16 |
target_link_libraries(4-GPU PRIVATE faiss) |
| 17 |
|
| 18 |
add_executable(5-Multiple-GPUs EXCLUDE_FROM_ALL 5-Multiple-GPUs.cpp) |
| 19 |
target_link_libraries(5-Multiple-GPUs PRIVATE faiss) |
| 20 |
|
| 21 |
add_executable(6-HNSW EXCLUDE_FROM_ALL 6-HNSW.cpp) |
| 22 |
target_link_libraries(6-HNSW PRIVATE faiss) |
| 23 |
|
| 24 |
add_executable(7-PQFastScan EXCLUDE_FROM_ALL 7-PQFastScan.cpp) |
| 25 |
target_link_libraries(7-PQFastScan PRIVATE faiss) |
| 26 |
|
| 27 |
add_executable(8-PQFastScanRefine EXCLUDE_FROM_ALL 8-PQFastScanRefine.cpp) |
| 28 |
target_link_libraries(8-PQFastScanRefine PRIVATE faiss) |
| 29 |
|
| 30 |
add_executable(9-RefineComparison EXCLUDE_FROM_ALL 9-RefineComparison.cpp) |
| 31 |
target_link_libraries(9-RefineComparison PRIVATE faiss) |
| 32 |
|
| 33 |
if(FAISS_ENABLE_SVS) |
| 34 |
|
| 35 |
add_executable(10-SVS-Vamana-LVQ EXCLUDE_FROM_ALL 10-SVS-Vamana-LVQ.cpp) |
| 36 |
target_link_libraries(10-SVS-Vamana-LVQ PRIVATE faiss) |
| 37 |
target_compile_definitions(10-SVS-Vamana-LVQ PRIVATE FAISS_ENABLE_SVS FAISS_SVS_RUNTIME_VERSION=${FAISS_SVS_RUNTIME_VERSION}) |
| 38 |
|
| 39 |
add_executable(11-SVS-Vamana-LeanVec EXCLUDE_FROM_ALL 11-SVS-Vamana-LeanVec.cpp) |
| 40 |
target_link_libraries(11-SVS-Vamana-LeanVec PRIVATE faiss) |
| 41 |
target_compile_definitions(11-SVS-Vamana-LeanVec PRIVATE FAISS_ENABLE_SVS FAISS_SVS_RUNTIME_VERSION=${FAISS_SVS_RUNTIME_VERSION}) |
| 42 |
endif() |