milvus/internal/core/bench/CMakeLists.txt
FluorineDog ce7a5ea699 Support segcoreinit
Signed-off-by: FluorineDog <guilin.gou@zilliz.com>
2021-04-16 14:02:49 +08:00

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)