add_definitions( -DKDE_DEFAULT_DEBUG_AREA=9532 )

set(kdevopenwith_PART_SRCS
    openwithplugin.cpp
)

kde4_add_plugin(kdevopenwith ${kdevopenwith_PART_SRCS})
target_link_libraries(kdevopenwith kdevplatforminterfaces kdevplatformproject ${KDE4_KDEUI_LIBS})

install(TARGETS kdevopenwith DESTINATION ${PLUGIN_INSTALL_DIR})

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

configure_file(kdevopenwith.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/kdevopenwith.desktop)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kdevopenwith.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install( FILES iopenwith.h DESTINATION ${INCLUDE_INSTALL_DIR}/kdevplatform/openwith COMPONENT Devel)