CMakeLists.txt 2.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#-------------------------------------------------------------------------------
# Copyright (C) 2019-2020 Zilliz. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under the License.
#-------------------------------------------------------------------------------

set(test_files
15
        ${CMAKE_CURRENT_SOURCE_DIR}/utils.cpp
16
        ${CMAKE_CURRENT_SOURCE_DIR}/test_snapshot.cpp
C
Cai Yudong 已提交
17
        ${CMAKE_CURRENT_SOURCE_DIR}/test_segment.cpp
18
        ${CMAKE_CURRENT_SOURCE_DIR}/test_db.cpp
C
Cai Yudong 已提交
19 20 21
        ${CMAKE_CURRENT_SOURCE_DIR}/test_ss_meta.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/test_ss_job.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/test_ss_task.cpp
22
        ${CMAKE_CURRENT_SOURCE_DIR}/test_ss_event.cpp
C
Cai Yudong 已提交
23
        )
24 25 26 27

add_executable(test_ssdb
        ${common_files}
        ${cache_files}
28 29
        ${codecs_files}
        ${codecs_default_files}
C
Cai Yudong 已提交
30
        ${codecs_snapshot_files}
31 32
        ${config_files}
        ${config_handler_files}
33
        ${db_attr_files}
34
        ${db_main_files}
G
groot 已提交
35
        ${db_attr_files}
36 37 38 39 40
        ${db_engine_files}
        ${db_insert_files}
        ${db_meta_files}
        ${db_merge_files}
        ${db_wal_files}
41
        ${db_snapshot_files}
42 43
        # ${grpc_server_files}
        # ${grpc_service_files}
W
Wang XiangYu 已提交
44
        ${log_files}
45
        ${metrics_files}
46 47 48
        ${query_files}
        ${segment_files}
        ${scheduler_files}
49 50
        # ${server_files}
        # ${server_init_files}
51
        ${server_context_files}
52
        # ${server_delivery_files}
53 54
        ${storage_files}
        ${tracing_files}
55
        # ${web_server_files}
56 57
        ${wrapper_files}
        ${thirdparty_files}
58 59 60 61
        ${test_files}
        )

target_link_libraries(test_ssdb
62
        knowhere
63
        metrics
W
Wang XiangYu 已提交
64
        config
65 66
        stdc++
        ${unittest_libs}
67
        )
68

O
op-hunter 已提交
69
install(TARGETS test_ssdb DESTINATION unittest)