project(context-videoclip)

set(videoclip_applet_SRCS
    VideoclipApplet.cpp
    VideoItemButton.cpp
    CustomVideoWidget.cpp
    ${Amarok_SOURCE_DIR}/src/widgets/kratingwidget.cpp
    ${Amarok_SOURCE_DIR}/src/widgets/kratingpainter.cpp
)

include_directories(
    ${Amarok_SOURCE_DIR}/src
    ${Amarok_SOURCE_DIR}/src/context
    ${Amarok_SOURCE_DIR}/src/context/applets
    ${Amarok_SOURCE_DIR}/src/context/applets/videoclip
    ${Amarok_SOURCE_DIR}/src/context/engines/videoclip
)

kde4_add_ui_files( videoclip_applet_SRCS videoclipSettings.ui )

kde4_add_plugin(amarok_context_applet_videoclip ${videoclip_applet_SRCS})
target_link_libraries( amarok_context_applet_videoclip amarokcore amaroklib ${KDE4_PLASMA_LIBS} ${KDE4_KIO_LIBS} ${KDE4_PHONON_LIBS})

install( TARGETS amarok_context_applet_videoclip DESTINATION ${PLUGIN_INSTALL_DIR} )
install( FILES amarok-context-applet-videoclip.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES amarok-videoclip-youtube.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ )
install( FILES amarok-videoclip-dailymotion.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ )
install( FILES amarok-videoclip-vimeo.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ )
