init.cmake 910 B

123456789101112131415161718192021222324252627282930313233
  1. if(NOT PROJECT_NAME STREQUAL "OpenCV")
  2. include(FindPkgConfig)
  3. endif()
  4. macro(add_backend backend_id cond_var)
  5. if(${cond_var})
  6. include("${CMAKE_CURRENT_LIST_DIR}/detect_${backend_id}.cmake")
  7. endif()
  8. endmacro()
  9. add_backend("ffmpeg" WITH_FFMPEG)
  10. add_backend("gstreamer" WITH_GSTREAMER)
  11. add_backend("v4l" WITH_V4L)
  12. add_backend("aravis" WITH_ARAVIS)
  13. add_backend("dc1394" WITH_1394)
  14. add_backend("gphoto" WITH_GPHOTO2)
  15. add_backend("msdk" WITH_MFX)
  16. add_backend("openni2" WITH_OPENNI2)
  17. add_backend("pvapi" WITH_PVAPI)
  18. add_backend("realsense" WITH_LIBREALSENSE)
  19. add_backend("ueye" WITH_UEYE)
  20. add_backend("ximea" WITH_XIMEA)
  21. add_backend("xine" WITH_XINE)
  22. add_backend("avfoundation" WITH_AVFOUNDATION)
  23. add_backend("ios" WITH_CAP_IOS)
  24. add_backend("dshow" WITH_DSHOW)
  25. add_backend("msmf" WITH_MSMF)
  26. add_backend("android_mediandk" WITH_ANDROID_MEDIANDK)
  27. add_backend("android_camera" WITH_ANDROID_NATIVE_CAMERA)