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)
|
|
|
|
find_library(cuda_library cudart cublas HINTS /usr/local/cuda/lib64)
|
|
|
|
|
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-04-22 09:50:52 +00:00
|
|
|
set(require_files
|
|
|
|
../../src/server/VecIdMapper.cpp
|
|
|
|
../../src/server/ServerConfig.cpp
|
2019-04-23 02:10:20 +00:00
|
|
|
../../src/utils/CommonUtil.cpp
|
2019-04-23 03:21:14 +00:00
|
|
|
../../src/utils/TimeRecorder.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-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-04-22 09:50:52 +00:00
|
|
|
boost_system
|
|
|
|
boost_filesystem
|
2019-04-23 02:10:20 +00:00
|
|
|
pthread
|
|
|
|
snappy
|
|
|
|
bz2
|
|
|
|
z
|
|
|
|
rocksdb
|
2019-04-24 02:25:00 +00:00
|
|
|
faiss
|
2019-04-26 11:45:26 +00:00
|
|
|
cudart
|
|
|
|
cublas
|
|
|
|
sqlite3
|
2019-04-23 02:10:20 +00:00
|
|
|
)
|
|
|
|
|
2019-04-22 09:50:52 +00:00
|
|
|
target_link_libraries(server_test
|
|
|
|
${unittest_libs}
|
|
|
|
${require_libs}
|
2019-04-24 02:25:00 +00:00
|
|
|
${cuda_library}
|
2019-04-22 09:50:52 +00:00
|
|
|
)
|