set(ktbitfinderplugin_SRC bitfinderplugin.cpp 
				bfitem.cpp
				source/sourcesview.cpp
				filter/matches.cpp
				filter/capture.cpp
				filter/capturechecker.cpp
				filter/capturecheckerdetails.cpp
				filter/filter.cpp
				filter/filterlistmodel.cpp
				filter/filtersview.cpp
				filter/filterdetails.cpp
				)

kde4_add_ui_files(ktbitfinderplugin_SRC
			filter/capturecheckerdetails.ui
			filter/filterdetails.ui)

kde4_add_plugin(ktbitfinderplugin ${ktbitfinderplugin_SRC})

target_link_libraries(
    ktbitfinderplugin
    ktcore
    btcore
    ${KDE4_KDECORE_LIBS}
    ${KDE4_KDEUI_LIBS}
    ${KDE4_KPARTS_LIBS}
    ${QT_QTCORE_LIBRARY}
    ${QT_QTGUI_LIBRARY}
    ${QT_QTXML_LIBRARY}
    )
install(TARGETS ktbitfinderplugin DESTINATION ${PLUGIN_INSTALL_DIR} )
install(FILES ktbitfinderplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
