Compare commits
2 Commits
32a1cd7533
...
a8c42de4d5
Author | SHA1 | Date |
---|---|---|
mandlm | a8c42de4d5 | |
mandlm | e648a82c42 |
|
@ -5,21 +5,14 @@ project(
|
||||||
VERSION 0.1.0
|
VERSION 0.1.0
|
||||||
LANGUAGES CXX)
|
LANGUAGES CXX)
|
||||||
|
|
||||||
add_subdirectory(lib_vector_search)
|
|
||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
||||||
|
|
||||||
include(ExportCompileCommands)
|
include(ExportCompileCommands)
|
||||||
include(sccache)
|
include(sccache)
|
||||||
|
|
||||||
add_executable(VectorSearch main.cpp)
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
|
||||||
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
|
||||||
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
|
||||||
|
|
||||||
target_link_libraries(VectorSearch lib_vector_search)
|
add_subdirectory(lib_vector_search)
|
||||||
|
add_subdirectory(vector_search_cli)
|
||||||
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")
|
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
cmake_minimum_required(VERSION 3.20)
|
cmake_minimum_required(VERSION 3.20)
|
||||||
|
|
||||||
project(
|
project(
|
||||||
lib_vector_search
|
vector_search
|
||||||
VERSION 0.1.0
|
VERSION 0.1.0
|
||||||
LANGUAGES CXX)
|
LANGUAGES CXX)
|
||||||
|
|
||||||
add_library(
|
add_library(vector_search STATIC src/word_list_generator.cpp src/timer.cpp
|
||||||
lib_vector_search STATIC src/word_list_generator.cpp src/timer.cpp
|
src/linear_finder.cpp src/parallel_finder.cpp)
|
||||||
src/linear_finder.cpp src/parallel_finder.cpp)
|
|
||||||
|
|
||||||
target_include_directories(lib_vector_search
|
target_include_directories(vector_search PUBLIC ${PROJECT_SOURCE_DIR}/include)
|
||||||
PUBLIC ${PROJECT_SOURCE_DIR}/include)
|
|
||||||
|
|
||||||
target_compile_features(lib_vector_search PUBLIC cxx_std_20)
|
target_compile_features(vector_search PUBLIC cxx_std_20)
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
cmake_minimum_required(VERSION 3.20)
|
||||||
|
|
||||||
|
project(
|
||||||
|
vector_search_cli
|
||||||
|
VERSION 0.1.0
|
||||||
|
LANGUAGES CXX)
|
||||||
|
|
||||||
|
add_executable(vector_search_cli main.cpp)
|
||||||
|
|
||||||
|
target_link_libraries(vector_search_cli vector_search)
|
||||||
|
|
||||||
|
target_compile_features(vector_search_cli PRIVATE cxx_std_20)
|
Loading…
Reference in New Issue