
########### next target ###############

set(kontact_newstickerplugin_PART_SRCS newsticker_plugin.cpp summarywidget.cpp)

kde4_add_plugin(kontact_newstickerplugin ${kontact_newstickerplugin_PART_SRCS})

kdepim4_link_unique_libraries(kontact_newstickerplugin  ${KDE4_KPARTS_LIBS} kdepim kontactinterfaces)

########### next target ###############

set(kcm_kontactknt_PART_SRCS kcmkontactknt.cpp)

kde4_add_plugin(kcm_kontactknt ${kcm_kontactknt_PART_SRCS})

kdepim4_link_unique_libraries(kcm_kontactknt ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS})

########### install files ###############

install(TARGETS kontact_newstickerplugin DESTINATION ${PLUGIN_INSTALL_DIR})
install(TARGETS kcm_kontactknt DESTINATION ${PLUGIN_INSTALL_DIR})

install(FILES newstickerplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact)
install(FILES kcmkontactknt.desktop DESTINATION ${SERVICES_INSTALL_DIR})

install(FILES newsticker.setdlg DESTINATION ${DATA_INSTALL_DIR}/kontact/ksettingsdialog)
