提交 7fd482b3 编写于 作者: G guru4elephant

remove opencv dependency to speedup iteration

上级 579d9597
...@@ -84,7 +84,6 @@ include(flags) ...@@ -84,7 +84,6 @@ include(flags)
if (NOT CLIENT_ONLY) if (NOT CLIENT_ONLY)
include(external/cudnn) include(external/cudnn)
include(paddlepaddle) include(paddlepaddle)
include(external/opencv)
endif() endif()
message("paddle serving source dir: " ${PADDLE_SERVING_SOURCE_DIR}) message("paddle serving source dir: " ${PADDLE_SERVING_SOURCE_DIR})
...@@ -124,7 +123,6 @@ endif() ...@@ -124,7 +123,6 @@ endif()
if (NOT CLIENT_ONLY) if (NOT CLIENT_ONLY)
list(APPEND EXTERNAL_LIBS paddlepaddle) list(APPEND EXTERNAL_LIBS paddlepaddle)
list(APPEND EXTERNAL_LIBS opencv)
endif() endif()
add_subdirectory(core) add_subdirectory(core)
......
...@@ -2,8 +2,7 @@ include_directories(SYSTEM ${CMAKE_CURRENT_LIST_DIR}/../kvdb/include) ...@@ -2,8 +2,7 @@ include_directories(SYSTEM ${CMAKE_CURRENT_LIST_DIR}/../kvdb/include)
include(op/CMakeLists.txt) include(op/CMakeLists.txt)
include(proto/CMakeLists.txt) include(proto/CMakeLists.txt)
add_executable(serving ${serving_srcs}) add_executable(serving ${serving_srcs})
add_dependencies(serving pdcodegen fluid_cpu_engine pdserving paddle_fluid add_dependencies(serving pdcodegen fluid_cpu_engine pdserving paddle_fluid cube-api utils)
opencv_imgcodecs cube-api utils)
if (WITH_GPU) if (WITH_GPU)
add_dependencies(serving fluid_gpu_engine) add_dependencies(serving fluid_gpu_engine)
endif() endif()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册