27 lines
947 B
CMake
27 lines
947 B
CMake
# Module to find the musicbrainz-4 library
|
|
#
|
|
# It defines
|
|
# MUSICBRAINZ5_INCLUDE_DIR - the include dir
|
|
# MUSICBRAINZ5_LIBRARIES - the required libraries
|
|
# MUSICBRAINZ5_FOUND - true if both of the above have been found
|
|
|
|
# Copyright (c) 2006,2007 Laurent Montel, <montel@kde.org>
|
|
#
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
|
|
if(MUSICBRAINZ5_INCLUDE_DIR AND MUSICBRAINZ5_LIBRARIES)
|
|
set(MUSICBRAINZ5_FIND_QUIETLY TRUE)
|
|
endif(MUSICBRAINZ5_INCLUDE_DIR AND MUSICBRAINZ5_LIBRARIES)
|
|
|
|
FIND_PATH(MUSICBRAINZ5_INCLUDE_DIR musicbrainz5/Disc.h)
|
|
|
|
FIND_LIBRARY( MUSICBRAINZ5_LIBRARIES NAMES musicbrainz5)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args( MUSICBRAINZ5 DEFAULT_MSG
|
|
MUSICBRAINZ5_INCLUDE_DIR MUSICBRAINZ5_LIBRARIES)
|
|
|
|
MARK_AS_ADVANCED(MUSICBRAINZ5_INCLUDE_DIR MUSICBRAINZ5_LIBRARIES)
|
|
|