# Plasma Data Engine
set(plasma_engine_katesessions_SRCS katesessionsengine.cpp katesessionsmodel.cpp katesessionsjob.cpp katesessionsservice.cpp)
add_library(plasma_engine_katesessions MODULE ${plasma_engine_katesessions_SRCS})
kservice_desktop_to_json(plasma_engine_katesessions plasma-dataengine-katesessions.desktop)
target_link_libraries(plasma_engine_katesessions
#    Qt5::DBus
    Qt5::Widgets       # QAction
#    KF5::ConfigGui
#    KF5::Completion    # klineedit - port away?
#    KF5::CoreAddons    # KUrlMimeData
#    KF5::GlobalAccel
    KF5::IconThemes
#    KF5::KIOWidgets    # PreviewJob
    KF5::Plasma
    KF5::Service
    KF5::I18n
#    KF5::TextWidgets   # KTextEdit
#    KF5::WidgetsAddons # KMessageBox
#    KF5::WindowSystem
#    KF5::XmlGui        # KActionCollection
#    ${ZLIB_LIBRARY}
)

install(TARGETS plasma_engine_katesessions DESTINATION ${PLUGIN_INSTALL_DIR}/plasma/dataengine)
install(FILES plasma-dataengine-katesessions.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES org.kde.plasma.katesessions.operations DESTINATION ${PLASMA_DATA_INSTALL_DIR}/services)


# Plasma Data Engine
set(plasma_engine_katesessions_SRCS katesessionsengine.cpp katesessionsmodel.cpp katesessionsjob.cpp katesessionsservice.cpp)
add_library(plasma_engine_katesessions MODULE ${plasma_engine_katesessions_SRCS})
kcoreaddons_desktop_to_json(plasma_engine_katesessions plasma-dataengine-katesessions.desktop)
target_link_libraries(plasma_engine_katesessions
#    Qt5::DBus
    Qt5::Widgets       # QAction
#    KF5::ConfigGui
#    KF5::Completion    # klineedit - port away?
#    KF5::CoreAddons    # KUrlMimeData
#    KF5::GlobalAccel
    KF5::IconThemes
#    KF5::KIOWidgets    # PreviewJob
    KF5::Plasma
    KF5::Service
    KF5::I18n
#    KF5::TextWidgets   # KTextEdit
#    KF5::WidgetsAddons # KMessageBox
#    KF5::WindowSystem
#    KF5::XmlGui        # KActionCollection
#    ${ZLIB_LIBRARY}
)

install(TARGETS plasma_engine_katesessions DESTINATION ${PLUGIN_INSTALL_DIR}/plasma/dataengine)
install(FILES plasma-dataengine-katesessions.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES org.kde.plasma.katesessions.operations DESTINATION ${PLASMA_DATA_INSTALL_DIR}/services)


Use kcoreaddons_desktop_to_json instead of kservice_
Use kcoreaddons_desktop_to_json instead of kservice_

REVIEW: 122176
