2019-04-14 06:32:49 +00:00
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
|
|
|
|
# Unauthorized copying of this file, via any medium is strictly prohibited.
|
|
|
|
# Proprietary and confidential.
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
include_directories(../../src)
|
2019-04-23 02:10:20 +00:00
|
|
|
include_directories(/usr/include)
|
2019-04-14 06:32:49 +00:00
|
|
|
|
2019-04-24 02:25:00 +00:00
|
|
|
include_directories(/usr/local/cuda/include)
|
2019-05-11 03:24:39 +00:00
|
|
|
link_directories(/usr/local/cuda/lib64)
|
2019-04-24 02:25:00 +00:00
|
|
|
|
2019-04-22 09:50:52 +00:00
|
|
|
aux_source_directory(../../src/config config_files)
|
2019-04-14 06:36:45 +00:00
|
|
|
aux_source_directory(../../src/cache cache_srcs)
|
2019-04-26 11:45:26 +00:00
|
|
|
aux_source_directory(../../src/wrapper wrapper_src)
|
2019-04-22 09:27:03 +00:00
|
|
|
aux_source_directory(./ test_srcs)
|
2019-04-14 06:32:49 +00:00
|
|
|
|
2019-06-28 07:05:01 +00:00
|
|
|
set(utils_srcs
|
2019-06-19 04:03:13 +00:00
|
|
|
${MILVUS_ENGINE_SRC}/utils/StringHelpFunctions.cpp
|
2019-06-28 07:05:01 +00:00
|
|
|
${MILVUS_ENGINE_SRC}/utils/TimeRecorder.cpp
|
|
|
|
${MILVUS_ENGINE_SRC}/utils/CommonUtil.cpp
|
2019-06-28 10:25:57 +00:00
|
|
|
${MILVUS_ENGINE_SRC}/utils/LogUtil.cpp
|
2019-04-22 09:50:52 +00:00
|
|
|
)
|
|
|
|
|
2019-04-26 11:45:26 +00:00
|
|
|
cuda_add_executable(server_test
|
2019-04-14 06:32:49 +00:00
|
|
|
${unittest_srcs}
|
2019-04-22 09:50:52 +00:00
|
|
|
${config_files}
|
2019-04-14 06:32:49 +00:00
|
|
|
${cache_srcs}
|
2019-04-26 11:45:26 +00:00
|
|
|
${wrapper_src}
|
2019-04-22 09:27:03 +00:00
|
|
|
${test_srcs}
|
2019-06-28 07:05:01 +00:00
|
|
|
${utils_srcs}
|
2019-04-22 09:50:52 +00:00
|
|
|
${require_files}
|
2019-04-22 09:27:03 +00:00
|
|
|
)
|
2019-04-14 06:32:49 +00:00
|
|
|
|
2019-04-22 09:50:52 +00:00
|
|
|
set(require_libs
|
2019-04-26 11:45:26 +00:00
|
|
|
stdc++
|
2019-06-19 07:46:14 +00:00
|
|
|
libgpufaiss.a
|
2019-04-24 02:25:00 +00:00
|
|
|
faiss
|
2019-04-26 11:45:26 +00:00
|
|
|
cudart
|
|
|
|
cublas
|
|
|
|
sqlite3
|
2019-05-29 09:30:27 +00:00
|
|
|
boost_system
|
|
|
|
boost_filesystem
|
|
|
|
snappy
|
|
|
|
z
|
|
|
|
bz2
|
|
|
|
zstd
|
2019-05-08 03:05:09 +00:00
|
|
|
lz4
|
2019-05-29 09:30:27 +00:00
|
|
|
pthread
|
2019-04-23 02:10:20 +00:00
|
|
|
)
|
|
|
|
|
2019-04-22 09:50:52 +00:00
|
|
|
target_link_libraries(server_test
|
|
|
|
${require_libs}
|
2019-04-24 02:25:00 +00:00
|
|
|
${cuda_library}
|
2019-05-29 08:14:15 +00:00
|
|
|
${unittest_libs}
|
2019-04-22 09:50:52 +00:00
|
|
|
)
|
2019-06-19 07:46:14 +00:00
|
|
|
|
|
|
|
install(TARGETS server_test DESTINATION bin)
|
2019-06-28 10:25:57 +00:00
|
|
|
|
|
|
|
configure_file(appendix/server_config.yaml
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/milvus/conf/server_config.yaml"
|
|
|
|
COPYONLY)
|
|
|
|
|
|
|
|
configure_file(appendix/log_config.conf
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/milvus/conf/log_config.conf"
|
|
|
|
COPYONLY)
|