CMakeLists.txt 1.6 KB
Newer Older
G
groot 已提交
1 2 3 4 5
#-------------------------------------------------------------------------------
# Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
# Unauthorized copying of this file, via any medium is strictly prohibited.
# Proprietary and confidential.
#-------------------------------------------------------------------------------
6 7 8 9
aux_source_directory(${MILVUS_ENGINE_SRC}/db db_srcs)
aux_source_directory(${MILVUS_ENGINE_SRC}/config config_files)
aux_source_directory(${MILVUS_ENGINE_SRC}/cache cache_srcs)
aux_source_directory(${MILVUS_ENGINE_SRC}/wrapper wrapper_src)
S
starlord 已提交
10
aux_source_directory(./ test_srcs)
G
groot 已提交
11

G
groot 已提交
12 13 14 15 16 17 18 19 20
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}
        )

G
groot 已提交
21 22 23
include_directories(/usr/local/cuda/include)
link_directories("/usr/local/cuda/lib64")

Z
zhiru 已提交
24
include_directories(/usr/include/mysql)
G
groot 已提交
25

Z
update  
zhiru 已提交
26 27
#add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY)

G
groot 已提交
28
set(db_test_src
Z
zhiru 已提交
29
    #${unittest_srcs}
G
groot 已提交
30 31
    ${config_files}
    ${cache_srcs}
G
groot 已提交
32
    ${db_srcs}
G
groot 已提交
33
    ${db_scheduler_srcs}
G
groot 已提交
34
    ${wrapper_src}
G
groot 已提交
35
    ${require_files}
S
starlord 已提交
36
    ${test_srcs})
G
groot 已提交
37 38 39 40

cuda_add_executable(db_test ${db_test_src})

set(db_libs
41
        libgpufaiss.a
G
groot 已提交
42 43 44
        faiss
        cudart
        cublas
Z
zhiru 已提交
45
        sqlite
Z
update  
zhiru 已提交
46
        boost_system_static
Z
update  
zhiru 已提交
47
        boost_filesystem_static
X
Xu Peng 已提交
48
        lz4
Z
zhiru 已提交
49
        mysqlpp
G
groot 已提交
50 51
        )

Z
zhiru 已提交
52
target_link_libraries(db_test ${db_libs} ${unittest_libs})
53

Z
zhiru 已提交
54
install(TARGETS db_test DESTINATION bin)