project(spellcheck)
add_subdirectory( tests )

include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${TEXTLAYOUT_INCLUDES} ${FLAKE_INCLUDES} )

set(spellcheck_SRCS
    SpellCheckPlugin.cpp
    SpellCheck.cpp
    SpellCheckFactory.cpp
    BgSpellCheck.cpp
    SpellCheckMenu.cpp
)

kde4_add_plugin(calligra_textediting_spellcheck ${spellcheck_SRCS})

target_link_libraries(calligra_textediting_spellcheck kotext kotextlayout)

install(TARGETS calligra_textediting_spellcheck DESTINATION ${PLUGIN_INSTALL_DIR})

install( FILES calligra_textediting_spellcheck.desktop DESTINATION ${SERVICES_INSTALL_DIR}/calligra )
