CMakeLists.txt 1.8 KB
Newer Older
G
groot 已提交
1 2 3 4 5 6
#-------------------------------------------------------------------------------
# Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
# Unauthorized copying of this file, via any medium is strictly prohibited.
# Proprietary and confidential.
#-------------------------------------------------------------------------------
include_directories(../../src)
G
groot 已提交
7
include_directories(/usr/include)
G
groot 已提交
8

G
groot 已提交
9
include_directories(/usr/local/cuda/include)
X
xj.lin 已提交
10
link_directories(/usr/local/cuda/lib64)
G
groot 已提交
11

G
groot 已提交
12
aux_source_directory(../../src/config config_files)
G
groot 已提交
13
aux_source_directory(../../src/cache cache_srcs)
G
groot 已提交
14
aux_source_directory(../../src/wrapper wrapper_src)
G
groot 已提交
15
aux_source_directory(./ test_srcs)
G
groot 已提交
16

G
groot 已提交
17
set(utils_srcs
18
        ${MILVUS_ENGINE_SRC}/utils/StringHelpFunctions.cpp
G
groot 已提交
19 20
        ${MILVUS_ENGINE_SRC}/utils/TimeRecorder.cpp
        ${MILVUS_ENGINE_SRC}/utils/CommonUtil.cpp
G
groot 已提交
21
        ${MILVUS_ENGINE_SRC}/utils/LogUtil.cpp
G
groot 已提交
22 23
        )

G
groot 已提交
24
cuda_add_executable(server_test
G
groot 已提交
25
        ${unittest_srcs}
G
groot 已提交
26
        ${config_files}
G
groot 已提交
27
        ${cache_srcs}
G
groot 已提交
28
        ${wrapper_src}
G
groot 已提交
29
        ${test_srcs}
G
groot 已提交
30
        ${utils_srcs}
G
groot 已提交
31
        ${require_files}
G
groot 已提交
32
        )
G
groot 已提交
33

G
groot 已提交
34
set(require_libs
X
MS-154  
xj.lin 已提交
35
        knowhere
G
groot 已提交
36
        faiss
X
MS-154  
xj.lin 已提交
37 38 39
        openblas
        lapack
        stdc++
G
groot 已提交
40 41 42
        cudart
        cublas
        sqlite3
G
groot 已提交
43 44 45 46 47 48
        boost_system
        boost_filesystem
        snappy
        z
        bz2
        zstd
X
Xu Peng 已提交
49
        lz4
G
groot 已提交
50
        pthread
G
groot 已提交
51 52
        )

G
groot 已提交
53 54
target_link_libraries(server_test
        ${require_libs}
G
groot 已提交
55
        ${cuda_library}
Z
zhiru 已提交
56
        ${unittest_libs}
G
groot 已提交
57
        )
58 59

install(TARGETS server_test DESTINATION bin)
G
groot 已提交
60 61 62 63 64 65 66 67

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)