2024-03-18 11:12:08 +00:00
|
|
|
cmake_minimum_required(VERSION 3.20)
|
|
|
|
|
|
|
|
project(
|
|
|
|
VectorSearch
|
|
|
|
VERSION 0.1.0
|
|
|
|
LANGUAGES CXX)
|
|
|
|
|
2024-03-19 16:26:26 +00:00
|
|
|
add_subdirectory(lib_vector_search)
|
|
|
|
|
2024-03-18 11:12:08 +00:00
|
|
|
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
|
|
|
|
|
|
|
include(ExportCompileCommands)
|
|
|
|
include(sccache)
|
|
|
|
|
2024-03-19 16:26:26 +00:00
|
|
|
add_executable(VectorSearch main.cpp)
|
|
|
|
|
|
|
|
target_link_libraries(VectorSearch lib_vector_search)
|
2024-03-18 11:12:08 +00:00
|
|
|
|
|
|
|
target_compile_features(VectorSearch PUBLIC cxx_std_20)
|
|
|
|
|
|
|
|
set_target_properties(
|
|
|
|
VectorSearch
|
|
|
|
PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin")
|