Link to QtQml/QtQuick instead of KDeclarative targets

We actually don'T need any of those classes
This commit is contained in:
Alexander Lohnau 2023-03-21 07:49:02 +01:00 committed by Nicolas Fella
parent 238d8a78cf
commit 749bb82ace
7 changed files with 50 additions and 57 deletions

View file

@ -65,7 +65,6 @@ find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS
ModemManagerQt
NetworkManagerQt
KCMUtils
Declarative
Package
)

View file

@ -10,16 +10,15 @@ set(flashlightplugin_SRCS
add_library(flashlightplugin ${flashlightplugin_SRCS})
target_link_libraries(flashlightplugin
PUBLIC
Qt::Core
PRIVATE
Qt::DBus
KF6::CoreAddons
KF6::QuickAddons
KF6::ConfigCore
KF6::ConfigGui
KF6::I18n
KF6::Notifications
Qt::Core
Qt::Qml
Qt::Quick
Qt::DBus
KF6::CoreAddons
KF6::ConfigCore
KF6::ConfigGui
KF6::I18n
KF6::Notifications
)
set_property(TARGET flashlightplugin PROPERTY LIBRARY_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/org/kde/plasma/quicksetting/flashlight)

View file

@ -16,15 +16,14 @@ kconfig_add_kcfg_files(nightcolorplugin_SRCS nightcolorsettings.kcfgc GENERATE_M
add_library(nightcolorplugin ${nightcolorplugin_SRCS})
target_link_libraries(nightcolorplugin
PUBLIC
Qt::Core
PRIVATE
Qt::DBus
KF6::CoreAddons
KF6::QuickAddons
KF6::ConfigCore
KF6::ConfigGui
)
Qt::Core
Qt::DBus
Qt::Qml
Qt::Quick
KF6::CoreAddons
KF6::ConfigCore
KF6::ConfigGui
)
set_property(TARGET nightcolorplugin PROPERTY LIBRARY_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/org/kde/plasma/quicksetting/nightcolor)
file(COPY qmldir DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/org/kde/plasma/quicksetting/nightcolor)

View file

@ -11,13 +11,12 @@ add_library(powermenuplugin ${powermenuplugin_SRCS})
find_package(LibKWorkspace)
target_link_libraries(powermenuplugin
PUBLIC
Qt::Core
PRIVATE
KF6::CoreAddons
KF6::QuickAddons
PW::KWorkspace
)
Qt::Core
Qt::Qml
Qt::Quick
KF6::CoreAddons
PW::KWorkspace
)
set_property(TARGET powermenuplugin PROPERTY LIBRARY_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/org/kde/plasma/quicksetting/powermenu)
file(COPY qmldir DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/org/kde/plasma/quicksetting/powermenu)

View file

@ -9,16 +9,15 @@ set(recordplugin_SRCS
add_library(recordplugin ${recordplugin_SRCS})
target_link_libraries(recordplugin
PUBLIC
Qt::Core
PRIVATE
Qt::DBus
KF6::CoreAddons
KF6::QuickAddons
KF6::ConfigCore
KF6::ConfigGui
KF6::I18n
KF6::Notifications
Qt::Core
Qt::DBus
Qt::Qml
Qt::Quick
KF6::CoreAddons
KF6::ConfigCore
KF6::ConfigGui
KF6::I18n
KF6::Notifications
)
set_property(TARGET recordplugin PROPERTY LIBRARY_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/org/kde/plasma/quicksetting/record)

View file

@ -12,16 +12,15 @@ set(screenrotationplugin_SRCS
add_library(screenrotationplugin ${screenrotationplugin_SRCS})
target_link_libraries(screenrotationplugin
PUBLIC
Qt::Core
PRIVATE
Qt::DBus
KF6::CoreAddons
KF6::QuickAddons
KF6::ConfigCore
KF6::ConfigGui
KF6::I18n
KF6::Notifications
Qt::Core
Qt::Qml
Qt::Quick
Qt::DBus
KF6::CoreAddons
KF6::ConfigCore
KF6::ConfigGui
KF6::I18n
KF6::Notifications
)
set_property(TARGET screenrotationplugin PROPERTY LIBRARY_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/org/kde/plasma/quicksetting/screenrotation)

View file

@ -12,16 +12,15 @@ set(screenshotplugin_SRCS
add_library(screenshotplugin ${screenshotplugin_SRCS})
target_link_libraries(screenshotplugin
PUBLIC
Qt::Core
PRIVATE
Qt::DBus
KF6::CoreAddons
KF6::QuickAddons
KF6::ConfigCore
KF6::ConfigGui
KF6::I18n
KF6::Notifications
Qt::Core
Qt::Qml
Qt::Quick
Qt::DBus
KF6::CoreAddons
KF6::ConfigCore
KF6::ConfigGui
KF6::I18n
KF6::Notifications
)
set_property(TARGET screenshotplugin PROPERTY LIBRARY_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/org/kde/plasma/quicksetting/screenshot)