mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 05:18:52 +08:00
ce7a5ea699
Signed-off-by: FluorineDog <guilin.gou@zilliz.com>
32 lines
745 B
CMake
32 lines
745 B
CMake
include_directories(${CMAKE_HOME_DIRECTORY}/src)
|
|
include_directories(${CMAKE_HOME_DIRECTORY}/unittest)
|
|
include_directories(${CMAKE_HOME_DIRECTORY}/src/index/knowhere)
|
|
|
|
set(bench_srcs
|
|
bench_naive.cpp
|
|
bench_search.cpp
|
|
)
|
|
|
|
set(indexbuilder_bench_srcs
|
|
bench_indexbuilder.cpp
|
|
)
|
|
|
|
add_executable(all_bench ${bench_srcs})
|
|
target_link_libraries(all_bench
|
|
milvus_segcore
|
|
log
|
|
pthread
|
|
)
|
|
|
|
target_link_libraries(all_bench benchmark::benchmark_main)
|
|
|
|
add_executable(indexbuilder_bench ${indexbuilder_bench_srcs})
|
|
target_link_libraries(indexbuilder_bench
|
|
milvus_segcore
|
|
milvus_indexbuilder
|
|
log
|
|
pthread
|
|
)
|
|
|
|
target_link_libraries(indexbuilder_bench benchmark::benchmark_main)
|