2021-08-05 19:42:58 +08:00
|
|
|
if(NOT PROJECT_NAME STREQUAL "OpenCV")
|
|
|
|
include(FindPkgConfig)
|
|
|
|
endif()
|
2018-12-26 20:50:20 +08:00
|
|
|
|
2021-07-21 12:06:31 +08:00
|
|
|
macro(add_backend backend_id cond_var)
|
|
|
|
if(${cond_var})
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/detect_${backend_id}.cmake")
|
|
|
|
endif()
|
|
|
|
endmacro()
|
2018-12-26 20:50:20 +08:00
|
|
|
|
|
|
|
add_backend("ffmpeg" WITH_FFMPEG)
|
|
|
|
add_backend("gstreamer" WITH_GSTREAMER)
|
|
|
|
add_backend("v4l" WITH_V4L)
|
|
|
|
|
|
|
|
add_backend("aravis" WITH_ARAVIS)
|
|
|
|
add_backend("dc1394" WITH_1394)
|
|
|
|
add_backend("gphoto" WITH_GPHOTO2)
|
|
|
|
add_backend("msdk" WITH_MFX)
|
|
|
|
add_backend("openni2" WITH_OPENNI2)
|
|
|
|
add_backend("pvapi" WITH_PVAPI)
|
|
|
|
add_backend("realsense" WITH_LIBREALSENSE)
|
2020-10-18 17:48:41 +08:00
|
|
|
add_backend("ueye" WITH_UEYE)
|
2018-12-26 20:50:20 +08:00
|
|
|
add_backend("ximea" WITH_XIMEA)
|
|
|
|
add_backend("xine" WITH_XINE)
|
2022-07-26 19:35:34 +08:00
|
|
|
add_backend("obsensor" WITH_OBSENSOR)
|
2018-12-26 20:50:20 +08:00
|
|
|
|
|
|
|
add_backend("avfoundation" WITH_AVFOUNDATION)
|
|
|
|
add_backend("ios" WITH_CAP_IOS)
|
|
|
|
|
|
|
|
add_backend("dshow" WITH_DSHOW)
|
|
|
|
add_backend("msmf" WITH_MSMF)
|
2019-03-20 02:28:45 +08:00
|
|
|
|
|
|
|
add_backend("android_mediandk" WITH_ANDROID_MEDIANDK)
|
2021-02-26 03:14:11 +08:00
|
|
|
add_backend("android_camera" WITH_ANDROID_NATIVE_CAMERA)
|