1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
45 lines
1.4 KiB
CMake
45 lines
1.4 KiB
CMake
if(PROJECT_NAME STREQUAL "OpenCV")
|
|
set(ENABLE_PLUGINS_DEFAULT ON)
|
|
if(EMSCRIPTEN OR IOS OR WINRT)
|
|
set(ENABLE_PLUGINS_DEFAULT OFF)
|
|
endif()
|
|
set(HIGHGUI_PLUGIN_LIST "" CACHE STRING "List of GUI backends to be compiled as plugins (gtk, gtk2/gtk3, qt, win32 or special value 'all')")
|
|
set(HIGHGUI_ENABLE_PLUGINS "${ENABLE_PLUGINS_DEFAULT}" CACHE BOOL "Allow building and using of GUI plugins")
|
|
mark_as_advanced(HIGHGUI_PLUGIN_LIST HIGHGUI_ENABLE_PLUGINS)
|
|
|
|
string(REPLACE "," ";" HIGHGUI_PLUGIN_LIST "${HIGHGUI_PLUGIN_LIST}") # support comma-separated list (,) too
|
|
if(NOT HIGHGUI_ENABLE_PLUGINS)
|
|
if(HIGHGUI_PLUGIN_LIST)
|
|
message(WARNING "HighGUI: plugins are disabled through HIGHGUI_ENABLE_PLUGINS, so HIGHGUI_PLUGIN_LIST='${HIGHGUI_PLUGIN_LIST}' is ignored")
|
|
set(HIGHGUI_PLUGIN_LIST "")
|
|
endif()
|
|
else()
|
|
# Make virtual plugins target
|
|
if(NOT TARGET opencv_highgui_plugins)
|
|
add_custom_target(opencv_highgui_plugins ALL)
|
|
endif()
|
|
endif()
|
|
endif()
|
|
|
|
#
|
|
# Detect available dependencies
|
|
#
|
|
|
|
if(NOT PROJECT_NAME STREQUAL "OpenCV")
|
|
include(FindPkgConfig)
|
|
endif()
|
|
|
|
macro(add_backend backend_id cond_var)
|
|
if(${cond_var})
|
|
include("${CMAKE_CURRENT_LIST_DIR}/detect_${backend_id}.cmake")
|
|
endif()
|
|
endmacro()
|
|
|
|
add_backend("gtk" WITH_GTK)
|
|
add_backend("win32ui" WITH_WIN32UI)
|
|
# TODO cocoa
|
|
# TODO qt
|
|
# TODO opengl
|
|
|
|
# FIXIT: move content of cmake/OpenCVFindLibsGUI.cmake here (need to resolve CMake scope issues)
|