add_fcitx5_addon(quickphrase quickphrase.cpp quickphrasetempmode.cpp quickphraseprovider.cpp)
target_link_libraries(quickphrase Fcitx5::Core Fcitx5::Module::Spell)
install(TARGETS quickphrase DESTINATION "${FCITX_INSTALL_ADDONDIR}")
configure_file(quickphrase.conf.in.in quickphrase.conf.in @ONLY)
fcitx5_translate_desktop_file(${CMAKE_CURRENT_BINARY_DIR}/quickphrase.conf.in quickphrase.conf)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/quickphrase.conf" DESTINATION "${FCITX_INSTALL_PKGDATADIR}/addon"
        COMPONENT config)
fcitx5_export_module(QuickPhrase TARGET quickphrase BUILD_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}" HEADERS quickphrase_public.h INSTALL)

install(DIRECTORY quickphrase.d DESTINATION "${FCITX_INSTALL_PKGDATADIR}/data"
        COMPONENT config
        FILES_MATCHING PATTERN "*.mb")
