CMakeLists.txt 590 字节
Newer Older
1 2 3 4
include(plugin/CMakeLists.txt)
include(src/CMakeLists.txt)

PROTOBUF_GENERATE_CPP(pdcodegen_proto_srcs pdcodegen_proto_hdrs
G
guru4elephant 已提交
5
        ${CMAKE_SOURCE_DIR}/core/predictor/proto/pds_option.proto)
6 7 8 9 10 11 12 13 14 15 16 17

LIST(APPEND pdcodegen_srcs ${pdcodegen_proto_srcs})

add_executable(pdcodegen ${pdcodegen_srcs})
target_link_libraries(pdcodegen protobuf ${PROTOBUF_PROTOC_LIBRARY})

# install
install(TARGETS pdcodegen
        RUNTIME DESTINATION ${PADDLE_SERVING_INSTALL_DIR}/bin
        ARCHIVE DESTINATION ${PADDLE_SERVING_INSTALL_DIR}/lib
        LIBRARY DESTINATION ${PADDLE_SERVING_INSTALL_DIR}/so
        )