detect_dshow.cmake 267 B

123456789101112
  1. # --- VideoInput/DirectShow ---
  2. if(NOT HAVE_DSHOW AND MSVC AND NOT MSVC_VERSION LESS 1500)
  3. set(HAVE_DSHOW TRUE)
  4. endif()
  5. if(NOT HAVE_DSHOW)
  6. check_include_file(dshow.h HAVE_DSHOW)
  7. endif()
  8. if(HAVE_DSHOW)
  9. ocv_add_external_target(dshow "" "" "HAVE_DSHOW")
  10. endif()