CMakeLists.txt 2.7 KB
Newer Older
W
wxyu 已提交
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 11 12 13 14 15 16
aux_source_directory(${MILVUS_ENGINE_SRC}/db db_main_files)
aux_source_directory(${MILVUS_ENGINE_SRC}/db/engine db_engine_files)
aux_source_directory(${MILVUS_ENGINE_SRC}/db/insert db_insert_files)
aux_source_directory(${MILVUS_ENGINE_SRC}/db/meta db_meta_files)
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/knowhere knowhere_src)
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)

17 18
aux_source_directory(${MILVUS_ENGINE_SRC}/scheduler/action scheduler_action_srcs)
aux_source_directory(${MILVUS_ENGINE_SRC}/scheduler/event scheduler_event_srcs)
W
wxyu 已提交
19
aux_source_directory(${MILVUS_ENGINE_SRC}/scheduler/resource scheduler_resource_srcs)
20
aux_source_directory(${MILVUS_ENGINE_SRC}/scheduler/task scheduler_task_srcs)
W
wxyu 已提交
21 22 23
aux_source_directory(${MILVUS_ENGINE_SRC}/scheduler scheduler_srcs)
aux_source_directory(./ test_srcs)

24 25 26 27 28 29 30
set(util_files ${MILVUS_ENGINE_SRC}/utils/ValidationUtil.cpp)

set(db_scheduler_srcs
        ${scheduler_files}
        ${scheduler_context_files}
        ${scheduler_task_files})

W
wxyu 已提交
31 32 33 34 35 36
include_directories(/usr/local/cuda/include)
link_directories("/usr/local/cuda/lib64")

include_directories(/usr/include/mysql)

set(scheduler_test_src
W
wxyu 已提交
37
        ${unittest_srcs}
W
wxyu 已提交
38
        ${test_srcs}
39 40
        ${scheduler_action_srcs}
        ${scheduler_event_srcs}
W
wxyu 已提交
41
        ${scheduler_resource_srcs}
42
        ${scheduler_task_srcs}
W
wxyu 已提交
43
        ${scheduler_srcs}
44 45 46 47 48 49 50 51 52 53 54 55

        ${config_files}
        ${cache_srcs}
        ${db_main_files}
        ${db_engine_files}
        ${db_insert_files}
        ${db_meta_files}
        ${db_scheduler_srcs}
        ${wrapper_src}
        ${knowhere_src}
        ${util_files}
        ${require_files}
W
wxyu 已提交
56 57 58 59 60 61 62 63 64 65 66 67
        )

cuda_add_executable(scheduler_test ${scheduler_test_src})

set(scheduler_libs
        sqlite
        boost_system_static
        boost_filesystem_static
        lz4
        mysqlpp
        )

68 69 70 71 72 73 74 75
set(knowhere_libs
        knowhere
        cudart
        cublas
        )


target_link_libraries(scheduler_test ${scheduler_libs} ${knowhere_libs} ${unittest_libs})
W
wxyu 已提交
76

S
starlord 已提交
77
install(TARGETS scheduler_test DESTINATION unittest)
W
wxyu 已提交
78