mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
619 B
26 lines
619 B
4 years ago
|
include(FindPkgConfig)
|
||
|
|
||
|
# FIXIT: stop using PARENT_SCOPE in dependencies
|
||
|
if(PROJECT_NAME STREQUAL "OpenCV")
|
||
|
macro(add_backend backend_id cond_var)
|
||
|
if(${cond_var})
|
||
|
include("${CMAKE_CURRENT_LIST_DIR}/detect_${backend_id}.cmake")
|
||
|
endif()
|
||
|
endmacro()
|
||
|
else()
|
||
|
function(add_backend backend_id cond_var)
|
||
|
if(${cond_var})
|
||
|
include("${CMAKE_CURRENT_LIST_DIR}/detect_${backend_id}.cmake")
|
||
|
endif()
|
||
|
endfunction()
|
||
|
endif()
|
||
|
|
||
|
add_backend("gtk" WITH_GTK)
|
||
|
|
||
|
# TODO win32
|
||
|
# TODO cocoa
|
||
|
# TODO qt
|
||
|
# TODO opengl
|
||
|
|
||
|
# FIXIT: move content of cmake/OpenCVFindLibsGUI.cmake here (need to resolve CMake scope issues)
|