CMakeLists.txt 1.9 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
17
        ${CMAKE_CURRENT_SOURCE_DIR}/test_db.cpp)
18 19 20 21 22

add_executable(test_ssdb
        ${common_files}
        ${log_files}
        ${cache_files}
23 24
        ${codecs_files}
        ${codecs_default_files}
25 26
        ${config_files}
        ${config_handler_files}
27 28 29 30 31 32
        ${db_main_files}
        ${db_engine_files}
        ${db_insert_files}
        ${db_meta_files}
        ${db_merge_files}
        ${db_wal_files}
33
        ${db_snapshot_files}
34 35
        ${grpc_server_files}
        ${grpc_service_files}
36
        ${metrics_files}
37 38 39 40 41 42 43 44 45 46 47 48
        ${query_files}
        ${segment_files}
        ${scheduler_files}
        ${server_files}
        ${server_init_files}
        ${server_context_files}
        ${server_delivery_files}
        ${storage_files}
        ${tracing_files}
        ${web_server_files}
        ${wrapper_files}
        ${thirdparty_files}
49 50 51 52
        ${test_files}
        )

target_link_libraries(test_ssdb
53
        knowhere
54 55 56
        metrics
        stdc++
        ${unittest_libs}
57
        oatpp)
58 59

install(TARGETS test_db DESTINATION unittest)