ecm_add_qml_module(corebindingsplugin URI "org.kde.ksvg" VERSION 1.0 DEPENDENCIES QtQuick GENERATE_PLUGIN_SOURCE)

target_sources(corebindingsplugin PRIVATE
    svgitem.cpp
    framesvgitem.cpp
    managedtexturenode.cpp
    imagetexturescache.cpp
    types.h
)

target_link_libraries(corebindingsplugin PRIVATE
        Qt6::Quick
        Qt6::Qml
        Qt6::Svg
        KF6::Svg
        KF6::ColorScheme
        KF6::KirigamiPlatform
        KF6::GuiAddons
)

ecm_qt_declare_logging_category(corebindingsplugin
    HEADER debug_p.h
    IDENTIFIER LOG_KSVGQML
    CATEGORY_NAME kf.svg
    DESCRIPTION "KSvg QML plugin"
)

ecm_finalize_qml_module(corebindingsplugin DESTINATION ${KDE_INSTALL_QMLDIR})

ecm_generate_qdoc(corebindingsplugin ksvgqml.qdocconf)