2020-08-27 10:08:42 +08:00
|
|
|
enable_testing()
|
2020-09-15 10:00:00 +08:00
|
|
|
|
|
|
|
include_directories(${CMAKE_HOME_DIRECTORY}/src)
|
2020-10-27 15:51:16 +08:00
|
|
|
include_directories(${CMAKE_HOME_DIRECTORY}/src/index/knowhere)
|
2020-08-27 10:08:42 +08:00
|
|
|
set(MILVUS_TEST_FILES
|
2020-09-15 10:00:00 +08:00
|
|
|
test_naive.cpp
|
2020-10-31 15:11:47 +08:00
|
|
|
test_segcore.cpp
|
2020-09-15 10:00:00 +08:00
|
|
|
test_concurrent_vector.cpp
|
|
|
|
test_c_api.cpp
|
|
|
|
test_indexing.cpp
|
2020-11-03 11:45:48 +08:00
|
|
|
test_query.cpp
|
2020-11-16 10:55:49 +08:00
|
|
|
test_expr.cpp
|
2020-11-30 22:14:19 +08:00
|
|
|
test_bitmap.cpp
|
|
|
|
test_binary.cpp
|
|
|
|
)
|
2020-09-15 10:00:00 +08:00
|
|
|
add_executable(all_tests
|
|
|
|
${MILVUS_TEST_FILES}
|
|
|
|
)
|
2020-08-27 10:08:42 +08:00
|
|
|
|
2020-09-15 10:00:00 +08:00
|
|
|
target_link_libraries(all_tests
|
|
|
|
gtest
|
|
|
|
gtest_main
|
2020-10-31 15:11:47 +08:00
|
|
|
milvus_segcore
|
2020-09-15 10:00:00 +08:00
|
|
|
knowhere
|
|
|
|
log
|
|
|
|
pthread
|
2020-12-03 19:00:11 +08:00
|
|
|
milvus_utils
|
2020-10-15 21:31:50 +08:00
|
|
|
)
|
2020-12-09 09:55:56 +08:00
|
|
|
|
2020-10-27 15:51:16 +08:00
|
|
|
install (TARGETS all_tests DESTINATION unittest)
|