mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 05:06:29 +08:00
add new check for vidcap.h
This commit is contained in:
parent
d09cc0f30c
commit
d3dcef4b8b
@ -2,10 +2,20 @@
|
||||
if(NOT HAVE_OBSENSOR)
|
||||
if(WIN32)
|
||||
check_include_file(mfapi.h HAVE_MFAPI)
|
||||
if(HAVE_MFAPI)
|
||||
check_include_file(vidcap.h HAVE_VIDCAP)
|
||||
if(HAVE_MFAPI AND HAVE_VIDCAP)
|
||||
set(HAVE_OBSENSOR TRUE)
|
||||
set(HAVE_OBSENSOR_MSMF TRUE)
|
||||
ocv_add_external_target(obsensor "" "" "HAVE_OBSENSOR;HAVE_OBSENSOR_MSMF")
|
||||
else()
|
||||
set(HAVE_OBSENSOR OFF)
|
||||
set(HAVE_OBSENSOR_MSMF OFF)
|
||||
if(NOT HAVE_MFAPI)
|
||||
MESSAGE(STATUS "Could not find mfapi.h. Turning HAVE_OBSENSOR OFF")
|
||||
endif()
|
||||
if(NOT HAVE_VIDCAP)
|
||||
MESSAGE(STATUS "Could not find vidcap.h. Turning HAVE_OBSENSOR OFF")
|
||||
endif()
|
||||
endif()
|
||||
elseif(UNIX)
|
||||
check_include_file(linux/videodev2.h HAVE_CAMV4L2)
|
||||
|
Loading…
Reference in New Issue
Block a user