# project(context-similarartists)

include_directories(
    ../..
    ../../..
    ${CMAKE_SOURCE_DIR}/src
    )

set( similarArtists_SRCS SimilarArtist.cpp ArtistWidget.cpp SimilarArtistsApplet.cpp)
kde4_add_ui_files( similarArtists_SRCS similarArtistsSettings.ui)

kde4_add_plugin(amarok_context_applet_similarArtists ${similarArtists_SRCS})
if(APPLE)
   SET_TARGET_PROPERTIES(amarok_context_applet_similarArtists PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
endif(APPLE)
target_link_libraries(amarok_context_applet_similarArtists amarokcore amaroklib ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${QT_QTWEBKIT_LIBRARY} ${KDE4_KIO_LIBS})

install(TARGETS amarok_context_applet_similarArtists DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES amarok-context-applet-similarArtists.desktop DESTINATION ${SERVICES_INSTALL_DIR})


