~ubuntu-branches/ubuntu/trusty/tomahawk/trusty-proposed

« back to all changes in this revision

Viewing changes to CMakeModules/FindLibLastFm.cmake

  • Committer: Package Import Robot
  • Author(s): Harald Sitter
  • Date: 2013-03-07 21:50:13 UTC
  • Revision ID: package-import@ubuntu.com-20130307215013-6gdjkdds7i9uenvs
Tags: upstream-0.6.0+dfsg
ImportĀ upstreamĀ versionĀ 0.6.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Try to find LibLastFm
 
2
#
 
3
#  LIBLASTFM_FOUND - system has liblastfm
 
4
#  LIBLASTFM_INCLUDE_DIRS - the liblastfm include directories
 
5
#  LIBLASTFM_LIBRARIES - link these to use liblastfm
 
6
#
 
7
# (c) Dominik Schmidt <dev@dominik-schmidt.de>
 
8
#
 
9
 
 
10
# Dependencies
 
11
if(NOT QT4_FOUND)
 
12
    find_package(Qt4 REQUIRED)
 
13
endif()
 
14
 
 
15
# Include dir
 
16
find_path(LIBLASTFM_INCLUDE_DIR
 
17
  # Track.h doesn't exist in liblastfm-0.3.1, was called Track back then
 
18
  NAMES lastfm/Track.h
 
19
  PATHS ${KDE4_INCLUDE_DIR}
 
20
)
 
21
 
 
22
# Finally the library itself
 
23
find_library(LIBLASTFM_LIBRARY
 
24
  NAMES lastfm
 
25
  PATHS ${KDE4_LIB_DIR}
 
26
)
 
27
 
 
28
set(LIBLASTFM_LIBRARIES ${LIBLASTFM_LIBRARY})
 
29
set(LIBLASTFM_INCLUDE_DIRS ${LIBLASTFM_INCLUDE_DIR})
 
30
 
 
31
include(FindPackageHandleStandardArgs)
 
32
find_package_handle_standard_args(LibLastFm DEFAULT_MSG LIBLASTFM_LIBRARIES LIBLASTFM_INCLUDE_DIRS)
 
33
 
 
34
mark_as_advanced(LIBLASTFM_LIBRARIES LIBLASTFM_INCLUDE_DIRS)