set(ktapplet_SRCS applet.cpp chunkbar.cpp)
    
    
kde4_add_ui_files(ktapplet_SRCS appletconfig.ui)

kde4_add_plugin(plasma_applet_ktorrent ${ktapplet_SRCS})
target_link_libraries(plasma_applet_ktorrent  ${PLASMA_LIBS} ${KDE4_KIO_LIBS} taskmanager btcore ktcore)

install(TARGETS plasma_applet_ktorrent DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-ktorrent.desktop DESTINATION ${SERVICES_INSTALL_DIR})
