2018-11-23 17:51:26 +08:00
|
|
|
OCV_OPTION(WITH_ADE "Enable ADE framework (required for Graph API module)" ON)
|
2019-12-03 18:13:06 +08:00
|
|
|
|
|
|
|
OCV_OPTION(WITH_FREETYPE "Enable FreeType framework" OFF)
|
|
|
|
OCV_OPTION(WITH_PLAIDML "Include PlaidML2 support" OFF)
|
2018-11-23 17:51:26 +08:00
|
|
|
|
|
|
|
if(NOT WITH_ADE)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2019-11-27 23:21:00 +08:00
|
|
|
if(ade_DIR)
|
2018-09-27 02:50:39 +08:00
|
|
|
# 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()
|
2019-11-27 23:21:00 +08:00
|
|
|
|
2019-12-03 18:13:06 +08:00
|
|
|
if(WITH_FREETYPE)
|
|
|
|
ocv_check_modules(FREETYPE freetype2)
|
|
|
|
if (FREETYPE_FOUND)
|
|
|
|
set(HAVE_FREETYPE TRUE)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-11-27 23:21:00 +08:00
|
|
|
if(WITH_PLAIDML)
|
|
|
|
find_package(PlaidML2 CONFIG QUIET)
|
|
|
|
if (PLAIDML_FOUND)
|
|
|
|
set(HAVE_PLAIDML TRUE)
|
|
|
|
endif()
|
|
|
|
endif()
|
2021-08-18 01:11:22 +08:00
|
|
|
|
|
|
|
if(WITH_GAPI_ONEVPL)
|
|
|
|
find_package(VPL)
|
|
|
|
if(VPL_FOUND)
|
|
|
|
set(HAVE_GAPI_ONEVPL TRUE)
|
|
|
|
endif()
|
|
|
|
endif()
|