demos/TTSArmLinux: Remove unnecessary opencv dependencies

Demo does not use OpenCV functions. Even if the Paddle-Lite library enables OpenCV, it does not need to be installed when building the demo.
pull/2991/head
彭逸豪 3 years ago
parent 18375aa19f
commit 5e0126ec22

@ -42,17 +42,6 @@ else()
message(FATAL_ERROR "Could not found OpenMP!") message(FATAL_ERROR "Could not found OpenMP!")
return() return()
endif() endif()
find_package(OpenCV REQUIRED)
if(OpenCV_FOUND OR OpenCV_CXX_FOUND)
include_directories(${OpenCV_INCLUDE_DIRS})
message(STATUS "OpenCV library status:")
message(STATUS " version: ${OpenCV_VERSION}")
message(STATUS " libraries: ${OpenCV_LIBS}")
message(STATUS " include path: ${OpenCV_INCLUDE_DIRS}")
else()
message(FATAL_ERROR "Could not found OpenCV!")
return()
endif()
add_executable(paddlespeech_tts_demo main.cc) add_executable(paddlespeech_tts_demo main.cc)
target_link_libraries(paddlespeech_tts_demo paddle_light_api_shared) target_link_libraries(paddlespeech_tts_demo paddle_light_api_shared)

Loading…
Cancel
Save