diff --git a/cpp/CHANGELOG.md b/cpp/CHANGELOG.md index 8d61f970b3..01e065ed07 100644 --- a/cpp/CHANGELOG.md +++ b/cpp/CHANGELOG.md @@ -92,6 +92,7 @@ Please mark all change in change log and use the ticket from JIRA. - MS-487 - Define metric type in CreateTable - MS-488 - Improve code format in scheduler - MS-495 - cmake: integrated knowhere +- MS-505 - Install core unit test ## New Feature - MS-343 - Implement ResourceMgr diff --git a/cpp/src/core/test/CMakeLists.txt b/cpp/src/core/test/CMakeLists.txt index ba3f0d65bd..ba1501084c 100644 --- a/cpp/src/core/test/CMakeLists.txt +++ b/cpp/src/core/test/CMakeLists.txt @@ -74,6 +74,10 @@ target_link_libraries(test_kdt SPTAGLibStatic ${depend_libs} ${unittest_libs} ${basic_libs}) +install(TARGETS test_ivf DESTINATION unittest) +install(TARGETS test_idmap DESTINATION unittest) +install(TARGETS test_kdt DESTINATION unittest) + add_subdirectory(faiss_ori) add_subdirectory(test_nsg) diff --git a/cpp/src/core/test/faiss_ori/CMakeLists.txt b/cpp/src/core/test/faiss_ori/CMakeLists.txt index 2f46d25d40..6cd490aff9 100644 --- a/cpp/src/core/test/faiss_ori/CMakeLists.txt +++ b/cpp/src/core/test/faiss_ori/CMakeLists.txt @@ -24,3 +24,5 @@ if(NOT TARGET test_gpu) add_executable(test_gpu gpuresource_test.cpp) endif() target_link_libraries(test_gpu ${depend_libs} ${unittest_libs} ${basic_libs}) + +install(TARGETS test_gpu DESTINATION unittest) \ No newline at end of file diff --git a/cpp/src/core/test/test_nsg/CMakeLists.txt b/cpp/src/core/test/test_nsg/CMakeLists.txt index 642c1a3d25..9ee8e76525 100644 --- a/cpp/src/core/test/test_nsg/CMakeLists.txt +++ b/cpp/src/core/test/test_nsg/CMakeLists.txt @@ -38,4 +38,6 @@ if(NOT TARGET test_nsg) endif() target_link_libraries(test_nsg ${depend_libs} ${unittest_libs} ${basic_libs}) -############################## \ No newline at end of file +############################## + +install(TARGETS test_nsg DESTINATION unittest) \ No newline at end of file