2012-06-11 22:04:50 +02:00
|
|
|
# - Try to find LibLastFm
|
|
|
|
#
|
2012-06-12 01:18:07 +02:00
|
|
|
# LIBLASTFM_FOUND - system has liblastfm
|
|
|
|
# LIBLASTFM_INCLUDE_DIRS - the liblastfm include directories
|
|
|
|
# LIBLASTFM_LIBRARIES - link these to use liblastfm
|
2012-06-11 22:04:50 +02:00
|
|
|
#
|
|
|
|
# (c) Dominik Schmidt <dev@dominik-schmidt.de>
|
|
|
|
#
|
2010-10-17 05:32:01 +02:00
|
|
|
|
2012-06-11 22:04:50 +02:00
|
|
|
# Include dir
|
|
|
|
find_path(LIBLASTFM_INCLUDE_DIR
|
2012-06-11 22:08:35 +02:00
|
|
|
# Track.h doesn't exist in liblastfm-0.3.1, was called Track back then
|
2018-07-07 20:40:38 +02:00
|
|
|
NAMES lastfm5/Track.h
|
2010-10-17 05:32:01 +02:00
|
|
|
)
|
|
|
|
|
2012-06-11 22:04:50 +02:00
|
|
|
# Finally the library itself
|
|
|
|
find_library(LIBLASTFM_LIBRARY
|
2018-07-07 20:40:38 +02:00
|
|
|
NAMES lastfm5
|
2010-10-17 05:32:01 +02:00
|
|
|
)
|
|
|
|
|
2012-06-11 22:04:50 +02:00
|
|
|
set(LIBLASTFM_LIBRARIES ${LIBLASTFM_LIBRARY})
|
2012-06-12 01:21:09 +02:00
|
|
|
set(LIBLASTFM_INCLUDE_DIRS ${LIBLASTFM_INCLUDE_DIR})
|
2010-10-17 05:32:01 +02:00
|
|
|
|
2012-06-11 22:04:50 +02:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(LibLastFm DEFAULT_MSG LIBLASTFM_LIBRARIES LIBLASTFM_INCLUDE_DIRS)
|
2010-10-17 05:32:01 +02:00
|
|
|
|
2012-06-11 22:04:50 +02:00
|
|
|
mark_as_advanced(LIBLASTFM_LIBRARIES LIBLASTFM_INCLUDE_DIRS)
|