CMakeLists.txt 750 字节
Newer Older
W
wangguibao 已提交
1
LIST(APPEND protofiles
W
wangguibao 已提交
2 3
        ${CMAKE_CURRENT_LIST_DIR}/proto/server_configure.proto
        ${CMAKE_CURRENT_LIST_DIR}/proto/sdk_configure.proto
4
        ${CMAKE_CURRENT_LIST_DIR}/proto/inferencer_configure.proto
W
wangguibao 已提交
5 6 7
)

PROTOBUF_GENERATE_CPP(configure_proto_srcs configure_proto_hdrs ${protofiles})
8
list(APPEND configure_srcs ${configure_proto_srcs})
W
wangguibao 已提交
9

10
list(APPEND configure_srcs ${CMAKE_CURRENT_LIST_DIR}/src/configure_parser.cpp)
W
wangguibao 已提交
11

12
add_library(configure ${configure_srcs})
W
wangguibao 已提交
13
add_dependencies(configure brpc)
W
wangguibao 已提交
14 15 16

add_executable(test_configure
        ${CMAKE_CURRENT_LIST_DIR}/tests/test_configure.cpp)
17
target_link_libraries(test_configure configure protobuf)
18 19 20 21

install(TARGETS configure 
        ARCHIVE DESTINATION ${PADDLE_SERVING_INSTALL_DIR}/lib
        )