Warning, /multimedia/kdenlive/cmake/modules/FindLibV4L2.cmake is written in an unsupported language. File is not indexed.

0001 # cmake macro to find LibV4L2
0002 #
0003 # SPDX-FileCopyrightText: 2009 Jaroslav Reznik <jreznik@redhat.com>
0004 # SPDX-License-Identifier: BSD-3-Clause
0005 # Once done this will define:
0006 #
0007 #  LIBV4L2_FOUND - System has LibV4L2
0008 #  LIBV4L2_INCLUDE_DIR - The LibV4L2 include directory
0009 #  LIBV4L2_LIBRARY - The libraries needed to use LibV4L2
0010 #
0011 # Redistribution and use is allowed according to the terms of the BSD license.
0012 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0013 
0014 IF (LIBV4L2_INCLUDE_DIR AND LIBV4L2_LIBRARY)
0015     # Already in cache, be silent
0016     SET (LIBV4L2_FIND_QUIETLY TRUE)
0017 ENDIF (LIBV4L2_INCLUDE_DIR AND LIBV4L2_LIBRARY)
0018 
0019 FIND_PATH (LIBV4L2_INCLUDE_DIR libv4l2.h)
0020 
0021 FIND_LIBRARY (LIBV4L2_LIBRARY v4l2)
0022 
0023 INCLUDE (FindPackageHandleStandardArgs)
0024 FIND_PACKAGE_HANDLE_STANDARD_ARGS (LibV4L2 DEFAULT_MSG LIBV4L2_INCLUDE_DIR LIBV4L2_LIBRARY)
0025 
0026 MARK_AS_ADVANCED(LIBV4L2_INCLUDE_DIR LIBV4L2_LIBRARY)
0027