parent
07ae6b6aa2
commit
f5a29bb679
|
@ -1,67 +0,0 @@
|
|||
# - Find V4L2 library
|
||||
# Find the native V4L2 includes and library
|
||||
# This module defines
|
||||
# V4L2_INCLUDE_DIR, where to find libv4l2.h, etc.
|
||||
# V4L2_LIBRARIES, libraries to link against to use V4L2.
|
||||
# V4L2_FOUND, If false, do not try to use V4L2. also defined, but not for general use are
|
||||
# V4L2_LIBRARY, where to find the V4L2 library.
|
||||
#
|
||||
#=============================================================================
|
||||
# Copyright 2012 Juergen Heinemann (Undefined) http://www.hjcms.de
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#
|
||||
#=============================================================================
|
||||
|
||||
SET (V4L2_FOUND 0)
|
||||
|
||||
FIND_PATH (V4L2_INCLUDE_DIR
|
||||
NAMES libv4l2.h
|
||||
PATH_SUFFIXES v4l2 video4linux
|
||||
DOC "The Video4Linux Version 2 (v4l2) include directory"
|
||||
)
|
||||
|
||||
FIND_PATH (V4L2_CONVERT_INCLUDE_DIR
|
||||
NAMES libv4lconvert.h
|
||||
PATH_SUFFIXES v4l2 v4lconvert
|
||||
DOC "The v4l format conversion (v4lconvert) include directory"
|
||||
)
|
||||
|
||||
FIND_PATH (_videodev2
|
||||
NAMES videodev2.h
|
||||
PATH_SUFFIXES linux
|
||||
DOC "Video for Linux Two header file include directory"
|
||||
)
|
||||
|
||||
FIND_LIBRARY (V4L2_LIBRARY
|
||||
NAMES v4l2
|
||||
DOC "The Video4Linux Version 2 (v4l2) library"
|
||||
)
|
||||
|
||||
FIND_LIBRARY (V4L2_CONVERT_LIBRARY
|
||||
NAMES v4lconvert
|
||||
DOC "The v4l format conversion (v4lconvert) library"
|
||||
)
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set V4L2_FOUND to TRUE if all listed variables are TRUE
|
||||
INCLUDE (FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS (V4L2 DEFAULT_MSG
|
||||
V4L2_LIBRARY V4L2_CONVERT_LIBRARY V4L2_INCLUDE_DIR V4L2_CONVERT_INCLUDE_DIR)
|
||||
|
||||
IF (NOT V4L2_FOUND)
|
||||
MESSAGE (WARNING "libv4l2 or libv4lconvert libraries from http://linuxtv.org not found!")
|
||||
ENDIF (NOT V4L2_FOUND)
|
||||
|
||||
IF (NOT _videodev2)
|
||||
MESSAGE (WARNING "videodev2.h kernel header not found!")
|
||||
SET (V4L2_FOUND 0)
|
||||
ENDIF(NOT _videodev2)
|
||||
|
||||
MARK_AS_ADVANCED (V4L2_INCLUDE_DIR V4L2_CONVERT_INCLUDE_DIR V4L2_LIBRARY V4L2_CONVERT_LIBRARY)
|
||||
|
||||
##EOF
|
Loading…
Reference in New Issue