blob: 9f2ad98546f9104ac8161e4a6b936c9fd6109a7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Module to find the musicbrainz library
#
# It defines
# MUSICBRAINZ_INCLUDE_DIR - the include dir
# MUSICBRAINZ_LIBRARIES - the required libraries
# MUSICBRAINZ_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(MUSICBRAINZ_INCLUDE_DIR AND MUSICBRAINZ_LIBRARIES)
set(MUSICBRAINZ_FIND_QUIETLY TRUE)
endif(MUSICBRAINZ_INCLUDE_DIR AND MUSICBRAINZ_LIBRARIES)
FIND_PATH(MUSICBRAINZ_INCLUDE_DIR musicbrainz/musicbrainz.h)
FIND_LIBRARY( MUSICBRAINZ_LIBRARIES NAMES musicbrainz)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args( MusicBrainz DEFAULT_MSG
MUSICBRAINZ_INCLUDE_DIR MUSICBRAINZ_LIBRARIES)
MARK_AS_ADVANCED(MUSICBRAINZ_INCLUDE_DIR MUSICBRAINZ_LIBRARIES)
|