1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02: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) IF(LIBLASTFM_FOUND)
set( libSources ${libSources} include_directories( ${LIBLASTFM_INCLUDE_DIRS} )
accounts/lastfm/LastFmAccount.cpp list(APPEND LINK_LIBRARIES ${LIBLASTFM_LIBRARIES} )
accounts/lastfm/LastFmConfig.cpp list(APPEND libSources
accounts/lastfm/LastFmInfoPlugin.cpp accounts/lastfm/LastFmAccount.cpp
accounts/lastfm/LastFmConfig.cpp
accounts/lastfm/LastFmInfoPlugin.cpp
) )
ENDIF(LIBLASTFM_FOUND) ENDIF(LIBLASTFM_FOUND)
@@ -353,7 +355,6 @@ include_directories(
${QT_INCLUDE_DIR} ${QT_INCLUDE_DIR}
${QJSON_INCLUDE_DIR} ${QJSON_INCLUDE_DIR}
${ECHONEST_INCLUDE_DIR} ${ECHONEST_INCLUDE_DIR}
${LIBLASTFM_INCLUDE_DIRS}
${CLUCENE_INCLUDE_DIRS} ${CLUCENE_INCLUDE_DIRS}
${PHONON_INCLUDES} ${PHONON_INCLUDES}
@@ -419,10 +420,6 @@ ELSE( APPLE )
SET( libGuiSources ${libGuiSources} thirdparty/Qocoa/qbutton.cpp thirdparty/Qocoa/qsearchfield.cpp thirdparty/Qocoa/qtoolbartabdialog.cpp ) SET( libGuiSources ${libGuiSources} thirdparty/Qocoa/qbutton.cpp thirdparty/Qocoa/qsearchfield.cpp thirdparty/Qocoa/qtoolbartabdialog.cpp )
ENDIF( APPLE ) ENDIF( APPLE )
IF(LIBLASTFM_FOUND)
LIST(APPEND LINK_LIBRARIES ${LIBLASTFM_LIBRARIES} )
ENDIF(LIBLASTFM_FOUND)
IF(BUILD_GUI) IF(BUILD_GUI)
LIST(APPEND libSources ${libGuiSources} ) LIST(APPEND libSources ${libGuiSources} )
ENDIF() ENDIF()