CMakeLists.txt 1.3 KB
Newer Older
J
jinhai 已提交
1 2 3 4 5 6 7 8
#-------------------------------------------------------------------------------
# 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"
)
9 10 11 12

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

J
jinhai 已提交
13
set(unittest_srcs
G
groot 已提交
14
        ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp)
J
jinhai 已提交
15

16 17 18 19 20 21
set(require_files
        ${MILVUS_ENGINE_SRC}/server/ServerConfig.cpp
        ${MILVUS_ENGINE_SRC}/utils/CommonUtil.cpp
        ${MILVUS_ENGINE_SRC}/utils/TimeRecorder.cpp
        )

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

Z
zhiru 已提交
41 42 43 44
foreach(dir ${CORE_INCLUDE_DIRS})
    include_directories(${dir})
endforeach()

S
starlord 已提交
45
add_subdirectory(server)
G
groot 已提交
46
add_subdirectory(db)
Z
zhiru 已提交
47
add_subdirectory(knowhere)
48
add_subdirectory(metrics)
Z
update  
zhiru 已提交
49 50
#add_subdirectory(scheduler)
#add_subdirectory(storage)