CMakeLists.txt 1.4 KB
Newer Older
J
jinhai 已提交
1 2 3 4 5 6 7
#-------------------------------------------------------------------------------
# Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
# Unauthorized copying of this file, via any medium is strictly prohibited.
# Proprietary and confidential.
#-------------------------------------------------------------------------------
link_directories(
        "${CMAKE_BINARY_DIR}/lib"
Z
zhiru 已提交
8
        "${GTEST_PREFIX}/lib/"
9

J
jinhai 已提交
10
)
11 12 13 14

aux_source_directory(${MILVUS_ENGINE_SRC}/db db_srcs)
aux_source_directory(${MILVUS_ENGINE_SRC}/config config_files)

Z
zhiru 已提交
15
message(STATUS "GTEST LIB: ${GTEST_PREFIX}/lib")
J
jinhai 已提交
16 17

set(unittest_srcs
G
groot 已提交
18
        ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp)
Z
zhiru 已提交
19
        #${EASYLOGGINGPP_INCLUDE_DIR}/easylogging++.cc)
J
jinhai 已提交
20

21 22 23 24 25 26
set(require_files
        ${MILVUS_ENGINE_SRC}/server/ServerConfig.cpp
        ${MILVUS_ENGINE_SRC}/utils/CommonUtil.cpp
        ${MILVUS_ENGINE_SRC}/utils/TimeRecorder.cpp
        )

J
jinhai 已提交
27
set(unittest_libs
G
groot 已提交
28
        yaml-cpp
Z
zhiru 已提交
29 30
        gtest
        gmock
J
jinhai 已提交
31 32
        gtest_main
        gmock_main
Z
zhiru 已提交
33
        easyloggingpp
Y
yu yunfeng 已提交
34
        pthread
Z
zhiru 已提交
35 36
        metrics
        openblas
37 38 39 40 41 42
        gfortran
        prometheus-cpp-pull
        prometheus-cpp-push
        prometheus-cpp-core
        dl
        z
Y
yu yunfeng 已提交
43
        ${CUDA_TOOLKIT_ROOT_DIR}/lib64/stubs/libnvidia-ml.so
44
        )
J
jinhai 已提交
45

G
groot 已提交
46
add_subdirectory(server)
G
groot 已提交
47
add_subdirectory(db)
Y
yangwei.yao 已提交
48
add_subdirectory(faiss_wrapper)
G
groot 已提交
49
#add_subdirectory(license)
50 51
add_subdirectory(metrics)
add_subdirectory(storage)