CMakeLists.txt 2.0 KB
Newer Older
G
groot 已提交
1
#-------------------------------------------------------------------------------
2
# Copyright (C) 2019-2020 Zilliz. All rights reserved.
J
jinhai 已提交
3
#
4 5
# 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
J
jinhai 已提交
6
#
7 8 9 10 11
# 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.
G
groot 已提交
12
#-------------------------------------------------------------------------------
J
jinhai 已提交
13

14 15 16 17
set( TEST_FILES ${CMAKE_CURRENT_SOURCE_DIR}/utils.cpp
                ${CMAKE_CURRENT_SOURCE_DIR}/test_snapshot.cpp
                ${CMAKE_CURRENT_SOURCE_DIR}/test_segment.cpp
                ${CMAKE_CURRENT_SOURCE_DIR}/test_db.cpp
B
BossZou 已提交
18
                ${CMAKE_CURRENT_SOURCE_DIR}/test_meta.cpp
19
                ${CMAKE_CURRENT_SOURCE_DIR}/test_ss_event.cpp
G
groot 已提交
20
                ${CMAKE_CURRENT_SOURCE_DIR}/test_transcript.cpp
G
groot 已提交
21
                ${CMAKE_CURRENT_SOURCE_DIR}/test_wal.cpp
22
                )
G
groot 已提交
23

24 25 26 27 28 29 30 31 32 33
add_executable( test_db
                ${SCHEDULER_FILES}
                ${TEST_FILES}
                # ${grpc_server_files}
                # ${grpc_service_files}
                # ${web_server_files}
                # ${server_delivery_files}
                # ${server_files}
                # ${server_init_files}
                )
S
starlord 已提交
34

35
target_link_libraries( test_db  ${UNITTEST_LIBS}
36
                                server
G
groot 已提交
37 38 39 40 41 42 43 44
                                 milvus_engine
                                 metrics
                                 config
                                 stdc++
                                 utils
                                 tracing
                                 query
                                 log
45
                                )
46

47
install( TARGETS test_db DESTINATION unittest )