718c41634f
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
42 lines
918 B
CMake
42 lines
918 B
CMake
OCV_OPTION(WITH_ADE "Enable ADE framework (required for Graph API module)" ON)
|
|
|
|
OCV_OPTION(WITH_FREETYPE "Enable FreeType framework" OFF)
|
|
OCV_OPTION(WITH_PLAIDML "Include PlaidML2 support" OFF)
|
|
|
|
if(NOT WITH_ADE)
|
|
return()
|
|
endif()
|
|
|
|
if(ade_DIR)
|
|
# if ade_DIR is set, use ADE-supplied CMake script
|
|
# to set up variables to the prebuilt ADE
|
|
find_package(ade 0.1.0)
|
|
endif()
|
|
|
|
if(NOT TARGET ade)
|
|
# if ade_DIR is not set, try to use automatically
|
|
# downloaded one (if there any)
|
|
include("${CMAKE_CURRENT_LIST_DIR}/DownloadADE.cmake")
|
|
endif()
|
|
|
|
if(WITH_FREETYPE)
|
|
ocv_check_modules(FREETYPE freetype2)
|
|
if (FREETYPE_FOUND)
|
|
set(HAVE_FREETYPE TRUE)
|
|
endif()
|
|
endif()
|
|
|
|
if(WITH_PLAIDML)
|
|
find_package(PlaidML2 CONFIG QUIET)
|
|
if (PLAIDML_FOUND)
|
|
set(HAVE_PLAIDML TRUE)
|
|
endif()
|
|
endif()
|
|
|
|
if(WITH_GAPI_ONEVPL)
|
|
find_package(VPL)
|
|
if(VPL_FOUND)
|
|
set(HAVE_GAPI_ONEVPL TRUE)
|
|
endif()
|
|
endif()
|