Warning, /frameworks/kdelibs4support/cmake/modules/FindFlac.cmake is written in an unsupported language. File is not indexed.

0001 # - Try to find Flac, the Free Lossless Audio Codec
0002 # Once done this will define
0003 #
0004 #  FLAC_FOUND - system has Flac
0005 #  FLAC_INCLUDE_DIR - the Flac include directory
0006 #  FLAC_LIBRARIES - Link these to use Flac
0007 #  FLAC_OGGFLAC_LIBRARIES - Link these to use OggFlac
0008 #
0009 # No version checking is done - use FLAC_API_VERSION_CURRENT to
0010 # conditionally compile version-dependent code
0011 
0012 # Copyright (c) 2006, Laurent Montel, <montel@kde.org>
0013 # Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
0014 #
0015 # Redistribution and use is allowed according to the terms of the BSD license.
0016 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0017 
0018 FIND_PATH(FLAC_INCLUDE_DIR FLAC/metadata.h)
0019 
0020 FIND_LIBRARY(FLAC_LIBRARIES NAMES FLAC )
0021 
0022 FIND_LIBRARY(FLAC_OGG_LIBRARY NAMES OggFLAC)
0023 
0024 
0025 IF(FLAC_LIBRARIES AND FLAC_OGG_LIBRARY)
0026    SET(FLAC_OGGFLAC_LIBRARIES ${FLAC_OGG_LIBRARY} ${FLAC_LIBRARIES})
0027 ENDIF(FLAC_LIBRARIES AND FLAC_OGG_LIBRARY)
0028 
0029 INCLUDE(FindPackageHandleStandardArgs)
0030 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Flac  REQUIRED_VARS  FLAC_LIBRARIES FLAC_INCLUDE_DIR)
0031 
0032 # show the FLAC_INCLUDE_DIR and FLAC_LIBRARIES variables only in the advanced view
0033 MARK_AS_ADVANCED(FLAC_INCLUDE_DIR FLAC_LIBRARIES FLAC_OGG_LIBRARY)
0034