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

0001 # - Try to find Mad
0002 # Once done this will define
0003 #
0004 #  MAD_FOUND - system has Mad
0005 #  MAD_INCLUDE_DIR - the Mad include directory
0006 #  MAD_LIBRARIES - Link these to use Mad
0007 #  MAD_DEFINITIONS - Compiler switches required for using Mad
0008 
0009 # SPDX-FileCopyrightText: 2007 Laurent Montel <montel@kde.org>
0010 # SPDX-License-Identifier: BSD-3-Clause
0011 
0012 if ( MAD_INCLUDE_DIR AND MAD_LIBRARIES )
0013    # in cache already
0014    SET(Mad_FIND_QUIETLY TRUE)
0015 endif ( MAD_INCLUDE_DIR AND MAD_LIBRARIES )
0016 
0017 FIND_PATH(MAD_INCLUDE_DIR NAMES mad.h
0018 )
0019 
0020 FIND_LIBRARY(MAD_LIBRARIES NAMES mad
0021 )
0022 
0023 include(FindPackageHandleStandardArgs)
0024 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Mad DEFAULT_MSG MAD_INCLUDE_DIR MAD_LIBRARIES )
0025 
0026 # show the MAD_INCLUDE_DIR and MAD_LIBRARIES variables only in the advanced view
0027 MARK_AS_ADVANCED(MAD_INCLUDE_DIR MAD_LIBRARIES )
0028