CMakeLists.txt 1.2 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 10
aux_source_directory(${MILVUS_ENGINE_SRC}/db db_srcs)
aux_source_directory(${MILVUS_ENGINE_SRC}/db/scheduler db_scheduler_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)
G
groot 已提交
11 12 13 14

include_directories(/usr/local/cuda/include)
link_directories("/usr/local/cuda/lib64")

15

G
groot 已提交
16 17 18

set(db_test_src
    ${unittest_srcs}
G
groot 已提交
19 20
    ${config_files}
    ${cache_srcs}
G
groot 已提交
21
    ${db_srcs}
G
groot 已提交
22
    ${db_scheduler_srcs}
G
groot 已提交
23
    ${wrapper_src}
G
groot 已提交
24
    ${require_files}
X
Xu Peng 已提交
25
    utils.cpp
X
Xu Peng 已提交
26
    db_tests.cpp
X
Xu Peng 已提交
27
    meta_tests.cpp)
G
groot 已提交
28 29 30 31

cuda_add_executable(db_test ${db_test_src})

set(db_libs
32
        gpufaiss
G
groot 已提交
33 34 35 36 37 38
        faiss
        cudart
        cublas
        sqlite3
        boost_system
        boost_filesystem
X
Xu Peng 已提交
39
        lz4
G
groot 已提交
40 41
        )

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