CMakeLists.txt 1.7 KB
Newer Older
G
groot 已提交
1
#-------------------------------------------------------------------------------
J
jinhai 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you 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.
G
groot 已提交
18
#-------------------------------------------------------------------------------
J
jinhai 已提交
19

Z
zhiru 已提交
20 21 22 23 24 25 26 27 28 29 30 31 32 33
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} test_files)

include_directories("${CUDA_TOOLKIT_ROOT_DIR}/include")
link_directories("${CUDA_TOOLKIT_ROOT_DIR}/lib64")

set(db_test_files
        ${cache_files}
        ${config_files}
        ${db_main_files}
        ${db_engine_files}
        ${db_insert_files}
        ${db_meta_files}
        ${db_scheduler_files}
        ${metrics_files}
G
groot 已提交
34
        ${scheduler_files}
Z
zhiru 已提交
35 36 37
        ${knowhere_files}
        ${helper_files}
        ${test_files}
S
starlord 已提交
38
    )
G
groot 已提交
39

Z
zhiru 已提交
40
cuda_add_executable(db_test ${db_test_files})
G
groot 已提交
41 42

set(db_libs
43
        sqlite
Z
update  
zhiru 已提交
44
        boost_system_static
Z
update  
zhiru 已提交
45
        boost_filesystem_static
X
Xu Peng 已提交
46
        lz4
Z
zhiru 已提交
47
        mysqlpp
G
groot 已提交
48 49
        )

Z
zhiru 已提交
50
target_link_libraries(db_test ${db_libs} knowhere ${unittest_libs})
51

S
starlord 已提交
52
install(TARGETS db_test DESTINATION unittest)
Z
zhiru 已提交
53