CMakeLists.txt 890 字节
Newer Older
1

2
include_directories(SYSTEM ${CMAKE_CURRENT_LIST_DIR}/include)
3

G
guru4elephant 已提交
4
set(SRC_LIST ${CMAKE_CURRENT_LIST_DIR}/src/rockskvdb_impl.cpp
5 6
            ${CMAKE_CURRENT_LIST_DIR}/src/param_dict_mgr_impl.cpp
            ${CMAKE_CURRENT_LIST_DIR}/src/mock_param_dict_impl.cpp
G
guru4elephant 已提交
7
            ${CMAKE_CURRENT_LIST_DIR}/src/paddle_rocksdb.cpp)
8
       
W
wangjiawei04 已提交
9
add_library(kvdb ${SRC_LIST})
10
add_dependencies(kvdb rocksdb)
W
wangjiawei04 已提交
11
install(TARGETS kvdb ARCHIVE DESTINATION ${PADDLE_SERVING_INSTALL_DIR}/lib/)
12 13


G
guru4elephant 已提交
14
set(SRC_LIST2 ${CMAKE_CURRENT_LIST_DIR}/src/rockskvdb_impl.cpp
15 16 17 18 19 20 21
            ${CMAKE_CURRENT_LIST_DIR}/src/param_dict_mgr_impl.cpp
            ${CMAKE_CURRENT_LIST_DIR}/src/mock_param_dict_impl.cpp
            ${CMAKE_CURRENT_LIST_DIR}/src/paddle_rocksdb.cpp)

file(GLOB kvdb_headers "${CMAKE_CURRENT_LIST_DIR}/include/kvdb/*.h")
install(FILES ${kvdb_headers} DESTINATION
      ${PADDLE_SERVING_INSTALL_DIR}/include/kvdb/)