mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-31 07:55:38 +08:00
36 lines
1.1 KiB
CMake
36 lines
1.1 KiB
CMake
#-------------------------------------------------------------------------------
|
|
# 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/MilvusService.cpp
|
|
${CMAKE_SOURCE_DIR}/src/thrift/gen-cpp/milvus_constants.cpp
|
|
${CMAKE_SOURCE_DIR}/src/thrift/gen-cpp/milvus_types.cpp
|
|
)
|
|
|
|
add_library(milvus_sdk STATIC
|
|
${interface_files}
|
|
${client_files}
|
|
${util_files}
|
|
${service_files}
|
|
)
|
|
|
|
target_link_libraries(milvus_sdk
|
|
${third_party_libs}
|
|
)
|
|
|
|
add_subdirectory(examples)
|
|
|
|
install(TARGETS milvus_sdk DESTINATION bin)
|