From f7717100a7ad9c1950364a361176948cbae2f3c2 Mon Sep 17 00:00:00 2001 From: yangrui07 Date: Wed, 31 Jul 2019 17:45:14 +0800 Subject: [PATCH] add cube binary to PADDLE_SERVING_INSTALL_DIR --- cube/cube-api/CMakeLists.txt | 2 +- cube/cube-server/CMakeLists.txt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cube/cube-api/CMakeLists.txt b/cube/cube-api/CMakeLists.txt index 28aa46dc..a80c5a25 100644 --- a/cube/cube-api/CMakeLists.txt +++ b/cube/cube-api/CMakeLists.txt @@ -126,7 +126,7 @@ install(TARGETS cube-api ARCHIVE DESTINATION ${PADDLE_SERVING_INSTALL_DIR}/lib ) install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/include - DESTINATION ${PADDLE_SERVING_INSTALL_DIR}/include/) + DESTINATION ${PADDLE_SERVING_INSTALL_DIR}/include/cube-api) FILE(GLOB inc ${CMAKE_CURRENT_BINARY_DIR}/*.pb.h) install(FILES ${inc} diff --git a/cube/cube-server/CMakeLists.txt b/cube/cube-server/CMakeLists.txt index 8bc330f9..6d80ef01 100644 --- a/cube/cube-server/CMakeLists.txt +++ b/cube/cube-server/CMakeLists.txt @@ -116,3 +116,8 @@ add_executable(cube_test ${SRC_LIST} test/cube_test.cpp ${PROTO_SRC} ${PROTO_HEADER}) target_link_libraries(cube_test ${DYNAMIC_LIB} brpc gtest -lpthread -ldl -lz) + +# install +install(TARGETS cube + RUNTIME DESTINATION ${PADDLE_SERVING_INSTALL_DIR}/bin + ) -- GitLab