1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-25 02:09:48 +01:00

Clean up CMake for optional liblastfm

This commit is contained in:
Dominik Schmidt 2013-01-15 00:59:28 +01:00
parent 034515cc7e
commit 705b5c9e47

View File

@ -318,10 +318,12 @@ list(APPEND libSources
)
IF(LIBLASTFM_FOUND)
set( libSources ${libSources}
accounts/lastfm/LastFmAccount.cpp
accounts/lastfm/LastFmConfig.cpp
accounts/lastfm/LastFmInfoPlugin.cpp
include_directories( ${LIBLASTFM_INCLUDE_DIRS} )
list(APPEND LINK_LIBRARIES ${LIBLASTFM_LIBRARIES} )
list(APPEND libSources
accounts/lastfm/LastFmAccount.cpp
accounts/lastfm/LastFmConfig.cpp
accounts/lastfm/LastFmInfoPlugin.cpp
)
ENDIF(LIBLASTFM_FOUND)
@ -353,7 +355,6 @@ include_directories(
${QT_INCLUDE_DIR}
${QJSON_INCLUDE_DIR}
${ECHONEST_INCLUDE_DIR}
${LIBLASTFM_INCLUDE_DIRS}
${CLUCENE_INCLUDE_DIRS}
${PHONON_INCLUDES}
@ -419,10 +420,6 @@ ELSE( APPLE )
SET( libGuiSources ${libGuiSources} thirdparty/Qocoa/qbutton.cpp thirdparty/Qocoa/qsearchfield.cpp thirdparty/Qocoa/qtoolbartabdialog.cpp )
ENDIF( APPLE )
IF(LIBLASTFM_FOUND)
LIST(APPEND LINK_LIBRARIES ${LIBLASTFM_LIBRARIES} )
ENDIF(LIBLASTFM_FOUND)
IF(BUILD_GUI)
LIST(APPEND libSources ${libGuiSources} )
ENDIF()