Warning, /multimedia/k3b/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 #
0008 # No version checking is done - use FLAC_API_VERSION_CURRENT to
0009 # conditionally compile version-dependent code
0010 
0011 # SPDX-FileCopyrightText: 2008 Laurent Montel <montel@kde.org>
0012 # SPDX-License-Identifier: BSD-3-Clause
0013 
0014 if(FLAC++_INCLUDE_DIR AND FLAC++_LIBRARIES)
0015     # Already in cache, be silent
0016     set(Flac++_FIND_QUIETLY TRUE)       
0017 endif(FLAC++_INCLUDE_DIR AND FLAC++_LIBRARIES)
0018 
0019 FIND_PATH(FLAC++_INCLUDE_DIR FLAC++/metadata.h)
0020 
0021 FIND_LIBRARY(FLAC++_LIBRARIES NAMES FLAC++ )
0022 
0023 
0024 
0025 
0026 IF(FLAC++_INCLUDE_DIR AND FLAC++_LIBRARIES)
0027    SET(FLAC++_FOUND TRUE)
0028 ENDIF(FLAC++_INCLUDE_DIR AND FLAC++_LIBRARIES)
0029 
0030 IF(FLAC++_FOUND)
0031    IF(NOT Flac++_FIND_QUIETLY)
0032       MESSAGE(STATUS "Found Flac++: ${FLAC++_LIBRARIES}")
0033    ENDIF(NOT Flac++_FIND_QUIETLY)
0034 ELSE(FLAC++_FOUND)
0035    IF(Flac++_FIND_REQUIRED)
0036       MESSAGE(FATAL_ERROR "Could not find Flac++")
0037    ENDIF(Flac++_FIND_REQUIRED)
0038    IF(NOT Flac++_FIND_QUIETLY)
0039       MESSAGE(STATUS "Could not find Flac++")
0040    ENDIF(NOT Flac++_FIND_QUIETLY)
0041 ENDIF(FLAC++_FOUND)
0042 
0043 MARK_AS_ADVANCED(FLAC++_INCLUDE_DIR FLAC++_LIBRARIES )
0044