Fix liblastfm finding

This commit is contained in:
David Sansome 2010-06-06 21:08:52 +00:00
parent 42cd269538
commit 0e155c1eaf
2 changed files with 2 additions and 3 deletions

View File

@ -52,7 +52,7 @@ else(WIN32)
pkg_check_modules(LIBXINE libxine) pkg_check_modules(LIBXINE libxine)
endif(WIN32) endif(WIN32)
find_library(LASTFM_LIBRARY_DIRS lastfm) find_library(LASTFM_LIBRARIES lastfm)
find_path(LASTFM_INCLUDE_DIRS lastfm/ws.h) find_path(LASTFM_INCLUDE_DIRS lastfm/ws.h)
find_library(PROJECTM_LIBRARIES projectM) find_library(PROJECTM_LIBRARIES projectM)
@ -72,7 +72,6 @@ endif(${CMAKE_BUILD_TYPE} MATCHES "Release")
add_definitions(${QT_DEFINITIONS}) add_definitions(${QT_DEFINITIONS})
link_directories(${TAGLIB_LIBRARY_DIRS}) link_directories(${TAGLIB_LIBRARY_DIRS})
link_directories(${GSTREAMER_LIBRARY_DIRS}) link_directories(${GSTREAMER_LIBRARY_DIRS})
link_directories(${LASTFM_LIBRARY_DIRS})
# Don't try to use Phonon if its include directory couldn't be found. # Don't try to use Phonon if its include directory couldn't be found.
# For some reason this works differently to the rest of Qt... # For some reason this works differently to the rest of Qt...

View File

@ -69,13 +69,13 @@ target_link_libraries(clementine_lib
clementine_translations clementine_translations
qtsingleapplication qtsingleapplication
qtiocompressor qtiocompressor
lastfm
chardet chardet
${GOBJECT_LIBRARIES} ${GOBJECT_LIBRARIES}
${GLIB_LIBRARIES} ${GLIB_LIBRARIES}
${TAGLIB_LIBRARIES} ${TAGLIB_LIBRARIES}
${QT_LIBRARIES} ${QT_LIBRARIES}
${ENGINE_LIBRARIES} ${ENGINE_LIBRARIES}
${LASTFM_LIBRARIES}
) )
if (APPLE) if (APPLE)