# switch — project file/symbol switchers ([deft:util] switch).
#
# No separate library: the plugin is self-contained. The widget/frecency come
# from the palette lib, the index/bridge from project_lib. Needs KF6::TextEditor.
if(NOT KF6TextEditor_FOUND)
    return()
endif()

kcoreaddons_add_plugin(deft_switch
    SOURCES switchplugin.cpp switchplugin.h
    INSTALL_NAMESPACE "kf6/ktexteditor"
)
target_link_libraries(deft_switch PRIVATE
    palette
    project_lib
    KF6::TextEditor
    KF6::XmlGui
    KF6::CoreAddons
    KF6::I18n
    Qt6::Widgets
)
