mirror of
https://github.com/opencv/opencv.git
synced 2025-01-21 08:37:57 +08:00
fc3e393516
* videoio: add support for obsensor (Orbbec RGB-D Camera ) * obsensor: code format issues fixed and some code optimized * obsensor: fix typo and format issues * obsensor: fix crosses initialization error
19 lines
540 B
CMake
19 lines
540 B
CMake
# --- obsensor ---
|
|
if(NOT HAVE_OBSENSOR)
|
|
if(WIN32)
|
|
check_include_file(mfapi.h HAVE_MFAPI)
|
|
if(HAVE_MFAPI)
|
|
set(HAVE_OBSENSOR TRUE)
|
|
set(HAVE_OBSENSOR_MSMF TRUE)
|
|
ocv_add_external_target(obsensor "" "" "HAVE_OBSENSOR;HAVE_OBSENSOR_MSMF")
|
|
endif()
|
|
elseif(UNIX)
|
|
check_include_file(linux/videodev2.h HAVE_CAMV4L2)
|
|
if(HAVE_CAMV4L2)
|
|
set(HAVE_OBSENSOR TRUE)
|
|
set(HAVE_OBSENSOR_V4L2 TRUE)
|
|
ocv_add_external_target(obsensor "" "" "HAVE_OBSENSOR;HAVE_OBSENSOR_V4L2")
|
|
endif()
|
|
endif()
|
|
endif()
|