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

0001 # Module to find the musicbrainz library
0002 #
0003 # It defines
0004 #  MUSICBRAINZ_INCLUDE_DIR - the include dir 
0005 #  MUSICBRAINZ_LIBRARIES - the required libraries
0006 #  MUSICBRAINZ_FOUND - true if both of the above have been found
0007 
0008 # Copyright (c) 2006,2007 Laurent Montel, <montel@kde.org>
0009 #
0010 # Redistribution and use is allowed according to the terms of the BSD license.
0011 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0012 
0013 if(MUSICBRAINZ_INCLUDE_DIR AND MUSICBRAINZ_LIBRARIES)
0014    set(MUSICBRAINZ_FIND_QUIETLY TRUE)
0015 endif(MUSICBRAINZ_INCLUDE_DIR AND MUSICBRAINZ_LIBRARIES)
0016 
0017 FIND_PATH(MUSICBRAINZ_INCLUDE_DIR musicbrainz/musicbrainz.h)
0018 
0019 FIND_LIBRARY( MUSICBRAINZ_LIBRARIES NAMES musicbrainz)
0020 
0021 # We need version 2, version 3 is source-incompatible
0022 FIND_PATH(MUSICBRAINZ3_INCLUDE_DIR musicbrainz3/musicbrainz.h)
0023 if(MUSICBRAINZ3_INCLUDE_DIR AND NOT MUSICBRAINZ_INCLUDE_DIR)
0024    message(STATUS "\nIncompatible version 3.x of the musicbrainz includes detected. Version 2.x is needed.\n")
0025 endif(MUSICBRAINZ3_INCLUDE_DIR AND NOT MUSICBRAINZ_INCLUDE_DIR)
0026 
0027 include(FindPackageHandleStandardArgs)
0028 find_package_handle_standard_args( MusicBrainz DEFAULT_MSG
0029                                    MUSICBRAINZ_INCLUDE_DIR MUSICBRAINZ_LIBRARIES)
0030 
0031 MARK_AS_ADVANCED(MUSICBRAINZ_INCLUDE_DIR MUSICBRAINZ_LIBRARIES)
0032