mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-21 06:11:09 +08:00

Migrate G-API module from main repo to opencv_contrib #3827 Related to https://github.com/opencv/opencv/pull/26469 Required https://github.com/opencv/opencv/pull/26527 CI: https://github.com/opencv/ci-gha-workflow/pull/201 TODO: - [x] Python types generator fix - [x] CI update ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [ ] The PR is proposed to the proper branch - [ ] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
50 lines
1.1 KiB
CMake
50 lines
1.1 KiB
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)
|
|
OCV_OPTION(WITH_OAK "Include OpenCV AI Kit 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()
|
|
|
|
if(WITH_OAK)
|
|
find_package(depthai QUIET)
|
|
if(depthai_FOUND)
|
|
set(HAVE_OAK TRUE)
|
|
endif()
|
|
endif()
|