set(ktzeroconfplugin_SRC zeroconfplugin.cpp torrentservice.cpp)

# kde4_add_ui_files(ktzeroconfplugin_SRC zeroconfpref.ui searchbar.ui)
#kde4_add_kcfg_files(ktzeroconfplugin_SRC zeroconfpluginsettings.kcfgc)
kde4_add_plugin(ktzeroconfplugin ${ktzeroconfplugin_SRC})

target_link_libraries(ktzeroconfplugin ${QT_QT3SUPPORT_LIBRARY} ${KDE4_KPARTS_LIBS} -lkdnssd ktcore )
install(TARGETS ktzeroconfplugin  DESTINATION ${PLUGIN_INSTALL_DIR} )
install(FILES ktzeroconfplugin.desktop  DESTINATION  ${SERVICES_INSTALL_DIR} )

