CMakeLists.txt 1.1 KB
Newer Older
G
groot 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#-------------------------------------------------------------------------------
# Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
# Unauthorized copying of this file, via any medium is strictly prohibited.
# Proprietary and confidential.
#-------------------------------------------------------------------------------

aux_source_directory(src/interface interface_files)
aux_source_directory(src/client client_files)
aux_source_directory(src/util util_files)

include_directories(src)
include_directories(include)
include_directories(/usr/include)
include_directories(${CMAKE_SOURCE_DIR}/src/thrift/gen-cpp)

set(service_files
        ${CMAKE_SOURCE_DIR}/src/thrift/gen-cpp/MegasearchService.cpp
        ${CMAKE_SOURCE_DIR}/src/thrift/gen-cpp/megasearch_constants.cpp
        ${CMAKE_SOURCE_DIR}/src/thrift/gen-cpp/megasearch_types.cpp
        )

add_library(megasearch_sdk STATIC
        ${interface_files}
        ${client_files}
        ${util_files}
        ${service_files}
        )

target_link_libraries(megasearch_sdk
Z
zhiru 已提交
30
        ${third_party_libs}
G
groot 已提交
31 32 33
        )

add_subdirectory(examples)