include_directories( ${ENCHANT_INCLUDE_DIR} "${ENCHANT_INCLUDE_DIR}/.." )


########### next target ###############

set(kspell_enchant_PART_SRCS enchantdict.cpp enchantclient.cpp )


add_library(kspell_enchant MODULE ${kspell_enchant_PART_SRCS})

target_link_libraries(kspell_enchant PRIVATE KF5::SonnetCore ${ENCHANT_LIBRARIES})

set_target_properties(kspell_enchant PROPERTIES OUTPUT_NAME "enchant")
install(TARGETS kspell_enchant DESTINATION ${PLUGIN_INSTALL_DIR}/kf5/sonnet/)

