|
|
@ -153,7 +153,13 @@ endif(WITH_XINE) |
|
|
|
ocv_clear_vars(HAVE_LIBV4L HAVE_CAMV4L HAVE_CAMV4L2 HAVE_VIDEOIO) |
|
|
|
ocv_clear_vars(HAVE_LIBV4L HAVE_CAMV4L HAVE_CAMV4L2 HAVE_VIDEOIO) |
|
|
|
if(WITH_V4L) |
|
|
|
if(WITH_V4L) |
|
|
|
if(WITH_LIBV4L) |
|
|
|
if(WITH_LIBV4L) |
|
|
|
CHECK_MODULE(libv4l1 HAVE_LIBV4L) |
|
|
|
CHECK_MODULE(libv4l1 HAVE_LIBV4L1) |
|
|
|
|
|
|
|
CHECK_MODULE(libv4l2 HAVE_LIBV4L2) |
|
|
|
|
|
|
|
if(HAVE_LIBV4L1 AND HAVE_LIBV4L2) |
|
|
|
|
|
|
|
set(HAVE_LIBV4L YES) |
|
|
|
|
|
|
|
else() |
|
|
|
|
|
|
|
set(HAVE_LIBV4L NO) |
|
|
|
|
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
CHECK_INCLUDE_FILE(linux/videodev.h HAVE_CAMV4L) |
|
|
|
CHECK_INCLUDE_FILE(linux/videodev.h HAVE_CAMV4L) |
|
|
|
CHECK_INCLUDE_FILE(linux/videodev2.h HAVE_CAMV4L2) |
|
|
|
CHECK_INCLUDE_FILE(linux/videodev2.h HAVE_CAMV4L2) |
|
|
|