CMakeLists.txt 1.2 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
aux_source_directory(../../src/config config_files)
G
groot 已提交
10
aux_source_directory(../../src/cache cache_srcs)
G
groot 已提交
11
aux_source_directory(./ test_srcs)
G
groot 已提交
12

G
groot 已提交
13 14 15
set(require_files
        ../../src/server/VecIdMapper.cpp
        ../../src/server/ServerConfig.cpp
G
groot 已提交
16
        ../../src/utils/CommonUtil.cpp
G
groot 已提交
17
        ../../src/utils/TimeRecorder.cpp
G
groot 已提交
18 19
        )

G
groot 已提交
20
add_executable(server_test
G
groot 已提交
21
        ${unittest_srcs}
G
groot 已提交
22
        ${config_files}
G
groot 已提交
23
        ${cache_srcs}
G
groot 已提交
24
        ${test_srcs}
G
groot 已提交
25
        ${require_files}
G
groot 已提交
26
        )
G
groot 已提交
27

G
groot 已提交
28 29 30 31
set(require_libs
        yaml-cpp
        boost_system
        boost_filesystem
G
groot 已提交
32 33 34 35 36 37 38 39
        pthread
        snappy
        bz2
        z
        rocksdb
        )

link_libraries(/usr/lib/x86_64-linux-gnu)
G
groot 已提交
40 41 42 43 44

target_link_libraries(server_test
        ${unittest_libs}
        ${require_libs}
        )