718c41634f
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
18 lines
474 B
CMake
18 lines
474 B
CMake
# --- V4L ---
|
|
if(NOT HAVE_V4L)
|
|
set(CMAKE_REQUIRED_QUIET TRUE) # for check_include_file
|
|
check_include_file(linux/videodev2.h HAVE_CAMV4L2)
|
|
check_include_file(sys/videoio.h HAVE_VIDEOIO)
|
|
if(HAVE_CAMV4L2 OR HAVE_VIDEOIO)
|
|
set(HAVE_V4L TRUE)
|
|
set(defs)
|
|
if(HAVE_CAMV4L2)
|
|
list(APPEND defs "HAVE_CAMV4L2")
|
|
endif()
|
|
if(HAVE_VIDEOIO)
|
|
list(APPEND defs "HAVE_VIDEOIO")
|
|
endif()
|
|
ocv_add_external_target(v4l "" "" "${defs}")
|
|
endif()
|
|
endif()
|