CMakeLists.txt 1.7 KB
Newer Older
J
jinhai 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#-------------------------------------------------------------------------------
# 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.
#-------------------------------------------------------------------------------

Y
youny626 已提交
20 21 22 23 24 25 26
set(test_files
        test_knowhere.cpp
        test_wrapper.cpp)
if (MILVUS_GPU_VERSION)
    set(test_files ${test_files}
            test_hybrid_index.cpp)
endif ()
X
MS-154  
xj.lin 已提交
27

Z
update  
zhiru 已提交
28
set(wrapper_files
29 30 31
        ${MILVUS_ENGINE_SRC}/wrapper/DataTransfer.cpp
        ${MILVUS_ENGINE_SRC}/wrapper/VecImpl.cpp
        ${MILVUS_ENGINE_SRC}/wrapper/VecIndex.cpp)
X
MS-154  
xj.lin 已提交
32

Z
update  
zhiru 已提交
33
set(util_files
34
        utils.cpp
W
wxyu 已提交
35
        ${MILVUS_THIRDPARTY_SRC}/easyloggingpp/easylogging++.cc
36
        ${MILVUS_ENGINE_SRC}/utils/Status.cpp
Z
zhiru 已提交
37
        )
X
MS-154  
xj.lin 已提交
38

S
starlord 已提交
39 40 41
add_executable(test_wrapper
        ${test_files}
        ${wrapper_files}
Y
Yu Kun 已提交
42 43
        ${util_files}
        ${common_files})
X
MS-154  
xj.lin 已提交
44

S
starlord 已提交
45 46 47
target_link_libraries(test_wrapper
        knowhere
        ${unittest_libs})
X
xj.lin 已提交
48

Y
Yu Kun 已提交
49
install(TARGETS test_wrapper DESTINATION unittest)