Warning, /multimedia/k3b/cmake/modules/FindMuse.cmake is written in an unsupported language. File is not indexed.
0001 # - Try to find Lame 0002 # Once done this will define 0003 # 0004 # MUSE_FOUND - system has Muse 0005 # MUSE_INCLUDE_DIR - the Muse include directory 0006 # MUSE_LIBRARIES - Link these to use Muse 0007 # MUSE_DEFINITIONS - Compiler switches required for using Muse 0008 # SPDX-FileCopyrightText: 2007 Laurent Montel <montel@kde.org> 0009 # SPDX-License-Identifier: BSD-3-Clause 0010 0011 if( MUSE_INCLUDE_DIR AND MUSE_LIBRARIES ) 0012 # in cache already 0013 set(MUSE_FIND_QUIETLY TRUE) 0014 endif( MUSE_INCLUDE_DIR AND MUSE_LIBRARIES ) 0015 0016 include(CheckIncludeFiles) 0017 check_include_files(mpc/mpcdec.h HAVE_MPC_MPCDEC_H) 0018 check_include_files(mpcdec/mpcdec.h HAVE_MPCDEC_MPCDEC_H) 0019 check_include_files(musepack/musepack.h HAVE_MUSEPACK_MUSEPACK_H) 0020 0021 if( HAVE_MPC_MPCDEC_H ) 0022 find_path( MUSE_INCLUDE_DIR mpc/mpcdec.h ) 0023 find_library( MUSE_LIBRARIES NAMES mpcdec ) 0024 set( MPC_HEADER_FILE "<mpc/mpcdec.h>" ) 0025 elseif( HAVE_MPCDEC_MPCDEC_H ) 0026 find_path( MUSE_INCLUDE_DIR mpcdec/mpcdec.h ) 0027 find_library( MUSE_LIBRARIES NAMES mpcdec ) 0028 set( MPC_HEADER_FILE "<mpcdec/mpcdec.h>" ) 0029 set( MPC_OLD_API 1) 0030 elseif( HAVE_MUSEPACK_MUSEPACK_H ) 0031 find_path( MUSE_INCLUDE_DIR musepack/musepack.h ) 0032 find_library( MUSE_LIBRARIES NAMES musepack ) 0033 set( MPC_HEADER_FILE "<musepack/musepack.h>" ) 0034 set( MPC_OLD_API 1 ) 0035 endif( HAVE_MPC_MPCDEC_H ) 0036 0037 if( MUSE_INCLUDE_DIR AND MUSE_LIBRARIES ) 0038 set( MUSE_FOUND TRUE ) 0039 else( MUSE_INCLUDE_DIR AND MUSE_LIBRARIES ) 0040 set( MUSE_FOUND FALSE ) 0041 endif( MUSE_INCLUDE_DIR AND MUSE_LIBRARIES ) 0042 0043 include(FindPackageHandleStandardArgs) 0044 find_package_handle_standard_args(Muse DEFAULT_MSG MUSE_INCLUDE_DIR MUSE_LIBRARIES MPC_HEADER_FILE ) 0045 0046 # show the MUSE_INCLUDE_DIR and MUSE_LIBRARIES variables only in the advanced view 0047 mark_as_advanced(MUSE_INCLUDE_DIR MUSE_LIBRARIES )