mirror of
https://github.com/opencv/opencv.git
synced 2024-12-12 07:09:12 +08:00
de8696aa43
CMake option: WITH_ADE=OFF
18 lines
432 B
CMake
18 lines
432 B
CMake
OCV_OPTION(WITH_ADE "Enable ADE framework (required for Graph API module)" ON)
|
|
|
|
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()
|