CMakeLists.txt 2.1 KB
Newer Older
Y
yu yunfeng 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18


#set(CURL_LIBRARY "-lcurl")
#find_package(CURL REQUIRED)
#INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIR})
#
#INCLUDE_DIRECTORIES(~/development/lib/usr/local/include)
#LINK_DIRECTORIES(~/development/lib/usr/local/lib)


include_directories(../../src)



aux_source_directory(../../src/db db_srcs)
aux_source_directory(../../src/config config_files)
aux_source_directory(../../src/cache cache_srcs)
aux_source_directory(../../src/wrapper wrapper_src)
19
aux_source_directory(../../src/metrics metrics_src)
S
starlord 已提交
20
aux_source_directory(./ test_srcs)
Y
yu yunfeng 已提交
21

G
groot 已提交
22 23 24 25 26 27 28 29
aux_source_directory(${MILVUS_ENGINE_SRC}/db/scheduler scheduler_files)
aux_source_directory(${MILVUS_ENGINE_SRC}/db/scheduler/context scheduler_context_files)
aux_source_directory(${MILVUS_ENGINE_SRC}/db/scheduler/task scheduler_task_files)
set(db_scheduler_srcs
        ${scheduler_files}
        ${scheduler_context_files}
        ${scheduler_task_files}
        )
Y
yu yunfeng 已提交
30 31 32 33 34 35

include_directories(/usr/include)
include_directories(../../third_party/build/include)
link_directories(../../third_party/build/lib)
include_directories(/usr/local/cuda/include)
link_directories("/usr/local/cuda/lib64")
Y
yu yunfeng 已提交
36 37
#include_directories(../db/utils.h)
include_directories(../../src/metrics)
Y
yu yunfeng 已提交
38

S
starlord 已提交
39
include_directories(/usr/include/mysql)
Y
yu yunfeng 已提交
40

41 42 43
#set(metrics_src_files
#        ../../src/metrics/Metrics.cpp
#        ../../src/metrics/Metrics.h
Y
yu yunfeng 已提交
44
#        ../../src/metrics/PrometheusMetrics.cpp
45 46 47 48 49
#        ../../src/metrics/MetricBase.h
#        ../../src/server/ServerConfig.cpp
#        ../../src/utils/CommonUtil.cpp
#        ../../src/utils/TimeRecorder.cpp
#        )
Y
yu yunfeng 已提交
50 51 52 53 54

set(count_test_src
        ${config_files}
        ${cache_srcs}
        ${db_srcs}
G
groot 已提交
55
        ${db_scheduler_srcs}
Y
yu yunfeng 已提交
56
        ${wrapper_src}
57
        ${metrics_src}
S
starlord 已提交
58 59
        ${test_srcs}
        )
Y
yu yunfeng 已提交
60 61 62 63 64


add_executable(metrics_test ${count_test_src} ${require_files} )

target_link_libraries(metrics_test
65
        libgpufaiss.a
Y
yu yunfeng 已提交
66 67 68 69 70 71 72 73 74 75 76
        faiss
        cudart
        cublas
        sqlite3
        boost_system
        boost_filesystem
        lz4
        metrics
        gtest
        pthread
        z
S
starlord 已提交
77
        mysqlpp
Z
zhiru 已提交
78
        ${unittest_libs}
79 80 81
        )

install(TARGETS metrics_test DESTINATION bin)