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
|
|
|
|
test_dog_segment.cpp
|
|
|
|
test_concurrent_vector.cpp
|
|
|
|
test_c_api.cpp
|
|
|
|
test_indexing.cpp
|
|
|
|
)
|
|
|
|
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
|
|
|
|
milvus_dog_segment
|
|
|
|
knowhere
|
|
|
|
log
|
|
|
|
pthread
|
2020-10-15 21:31:50 +08:00
|
|
|
)
|
2020-10-27 15:51:16 +08:00
|
|
|
install (TARGETS all_tests DESTINATION unittest)
|