Commit 1a072208 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Use versionless Qt cmake target

This makes it easier to build against both Qt5 and Qt6
parent 7d94c13e
......@@ -7,9 +7,9 @@ add_library(plasma_applet_appmenu MODULE ${appmenuapplet_SRCS})
kcoreaddons_desktop_to_json(plasma_applet_appmenu ../package/metadata.desktop)
target_link_libraries(plasma_applet_appmenu
Qt5::Widgets
Qt5::Quick
Qt5::DBus
Qt::Widgets
Qt::Quick
Qt::DBus
KF5::Plasma
KF5::WindowSystem
PW::LibTaskManager)
......
......@@ -5,9 +5,9 @@ set(appmenuapplet_SRCS
add_library(appmenuplugin SHARED ${appmenuapplet_SRCS})
target_link_libraries(appmenuplugin
Qt5::Core
Qt5::Widgets
Qt5::Quick
Qt::Core
Qt::Widgets
Qt::Quick
KF5::Plasma
KF5::WindowSystem
PW::LibTaskManager
......
......@@ -15,9 +15,9 @@ set(digitalclockplugin_SRCS
)
add_library(digitalclockplugin SHARED ${digitalclockplugin_SRCS})
target_link_libraries(digitalclockplugin Qt5::Core
Qt5::Qml
Qt5::Widgets # for QAction...
target_link_libraries(digitalclockplugin Qt::Core
Qt::Qml
Qt::Widgets # for QAction...
KF5::CoreAddons
KF5::I18n)
......
......@@ -57,10 +57,10 @@ install(FILES plugin/qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/pri
add_library(kickerplugin SHARED ${kickerplugin_SRCS})
target_link_libraries(kickerplugin
Qt5::Core
Qt5::Qml
Qt5::Quick
Qt5::X11Extras
Qt::Core
Qt::Qml
Qt::Quick
Qt::X11Extras
KF5::Activities
KF5::ActivitiesStats
KF5::ConfigCore
......
......@@ -12,8 +12,8 @@ add_library(plasma_applet_notifications MODULE ${notificationapplet_SRCS})
kcoreaddons_desktop_to_json(plasma_applet_notifications package/metadata.desktop)
target_link_libraries(plasma_applet_notifications
Qt5::Gui
Qt5::Quick # for QQmlParserStatus
Qt::Gui
Qt::Quick # for QQmlParserStatus
KF5::ConfigWidgets # for KStandardAction
KF5::I18n
KF5::Plasma
......
......@@ -9,7 +9,7 @@ add_library(org.kde.plasma.panelspacer MODULE ${panelspacer_SRCS})
kcoreaddons_desktop_to_json(org.kde.plasma.panelspacer ../package/metadata.desktop)
target_link_libraries(org.kde.plasma.panelspacer Qt5::Gui Qt5::Core Qt5::Qml Qt5::Quick KF5::Plasma KF5::PlasmaQuick KF5::I18n)
target_link_libraries(org.kde.plasma.panelspacer Qt::Gui Qt::Core Qt::Qml Qt::Quick KF5::Plasma KF5::PlasmaQuick KF5::I18n)
install(TARGETS org.kde.plasma.panelspacer DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/applets)
......@@ -7,10 +7,10 @@ add_library(plasma_applet_systemmonitor MODULE ${systemmonitor_SRCS})
kcoreaddons_desktop_to_json(plasma_applet_systemmonitor package/metadata.desktop)
target_link_libraries(plasma_applet_systemmonitor
Qt5::Gui
Qt5::Qml
Qt5::Quick
Qt5::DBus
Qt::Gui
Qt::Qml
Qt::Quick
Qt::DBus
KF5::Plasma
KF5::I18n
KF5::ConfigCore
......
......@@ -21,9 +21,9 @@ add_library(org.kde.plasma.private.systemtray MODULE ${systemtray_SRCS})
kcoreaddons_desktop_to_json(org.kde.plasma.private.systemtray package/metadata.desktop)
target_link_libraries(org.kde.plasma.private.systemtray
Qt5::Gui
Qt5::Quick
Qt5::DBus
Qt::Gui
Qt::Quick
Qt::DBus
KF5::Plasma
KF5::XmlGui
KF5::I18n
......
......@@ -16,9 +16,9 @@ ecm_qt_declare_logging_category(systemtraymodel_test_SRCS HEADER debug.h
add_library(systemtraymodel_test STATIC ${systemtraymodel_test_SRCS})
target_link_libraries(systemtraymodel_test
Qt5::Core
Qt5::DBus
Qt5::Quick
Qt::Core
Qt::DBus
Qt::Quick
KF5::CoreAddons
KF5::I18n
KF5::ItemModels
......@@ -28,5 +28,5 @@ target_link_libraries(systemtraymodel_test
ecm_add_tests(systemtraymodeltest.cpp
LINK_LIBRARIES systemtraymodel_test
Qt5::Test
Qt::Test
)
......@@ -15,8 +15,8 @@ add_library(org.kde.plasma.systemtray MODULE ${systemtraycontainer_SRCS})
kcoreaddons_desktop_to_json(org.kde.plasma.systemtray package/metadata.desktop)
target_link_libraries(org.kde.plasma.systemtray
Qt5::Gui
Qt5::Quick
Qt::Gui
Qt::Quick
KF5::Plasma
KF5::XmlGui
KF5::I18n)
......
......@@ -9,14 +9,14 @@ ki18n_wrap_ui(statusnotifiertest_SRCS statusnotifiertest.ui)
add_executable(statusnotifiertest ${statusnotifiertest_SRCS})
target_link_libraries(statusnotifiertest
Qt5::Widgets
Qt5::Core
Qt::Widgets
Qt::Core
KF5::CoreAddons
KF5::KIOCore
KF5::Service
KF5::Notifications
KF5::I18n
Qt5::DBus
Qt::DBus
)
include(ECMMarkAsTest)
......
......@@ -17,7 +17,7 @@ add_library(appmenu MODULE ${kded_appmenu_SRCS})
kcoreaddons_desktop_to_json(appmenu appmenu.desktop)
target_link_libraries(appmenu
Qt5::DBus
Qt::DBus
KF5::DBusAddons
KF5::KIOCore
KF5::WindowSystem
......@@ -26,7 +26,7 @@ target_link_libraries(appmenu
)
if (HAVE_X11)
target_link_libraries(appmenu Qt5::X11Extras XCB::XCB)
target_link_libraries(appmenu Qt::X11Extras XCB::XCB)
endif()
install(TARGETS appmenu DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kded )
......
......@@ -15,9 +15,9 @@ add_library(containmentlayoutmanagerplugin ${containmentlayoutmanagerplugin_SRCS
target_link_libraries(containmentlayoutmanagerplugin
PUBLIC
Qt5::Core
Qt::Core
PRIVATE
Qt5::Qml Qt5::Quick
Qt::Qml Qt::Quick
KF5::Plasma KF5::PlasmaQuick
)
......
......@@ -17,9 +17,9 @@ qt5_add_dbus_interface(keyboardlayoutplugin_SRCS "org.kde.KeyboardLayouts.xml" k
add_library(keyboardlayoutplugin SHARED ${keyboardlayoutplugin_SRCS})
target_link_libraries(keyboardlayoutplugin Qt5::Core
Qt5::DBus
Qt5::Qml)
target_link_libraries(keyboardlayoutplugin Qt::Core
Qt::DBus
Qt::Qml)
set(keyboardlayoutplugin_PATH /org/kde/plasma/workspace/keyboardlayout)
install(TARGETS keyboardlayoutplugin
......
......@@ -9,11 +9,11 @@ kconfig_add_kcfg_files(sessionsprivateplugin_SRCS kscreensaversettings.kcfgc)
add_library(sessionsprivateplugin SHARED ${sessionsprivateplugin_SRCS})
target_link_libraries(sessionsprivateplugin
Qt5::Core
Qt5::DBus
Qt5::Quick
Qt5::Qml
Qt5::Gui
Qt::Core
Qt::DBus
Qt::Quick
Qt::Qml
Qt::Gui
KF5::CoreAddons
KF5::ConfigCore
KF5::ConfigGui
......
......@@ -18,13 +18,13 @@ set(plasmashellprivateplugin_SRCS
add_library(plasmashellprivateplugin SHARED ${plasmashellprivateplugin_SRCS})
target_link_libraries(plasmashellprivateplugin
Qt5::Core
Qt5::Quick
Qt5::Qml
Qt5::Gui
Qt5::Widgets
Qt5::Quick
Qt5::Qml
Qt::Core
Qt::Quick
Qt::Qml
Qt::Gui
Qt::Widgets
Qt::Quick
Qt::Qml
KF5::Plasma
KF5::PlasmaQuick
KF5::I18n
......
......@@ -17,7 +17,7 @@ add_library(plasma_containmentactions_contextmenu MODULE ${contextmenu_SRCS})
kcoreaddons_desktop_to_json(plasma_containmentactions_contextmenu plasma-containmentactions-contextmenu.desktop)
target_link_libraries(plasma_containmentactions_contextmenu
Qt5::DBus
Qt::DBus
KF5::I18n
KF5::GlobalAccel
KF5::Plasma
......
add_library(plasma_containmentactions_paste MODULE paste.cpp)
target_link_libraries(plasma_containmentactions_paste
Qt5::Gui
Qt5::Widgets
Qt::Gui
Qt::Widgets
KF5::Plasma
KF5::KIOCore
)
......
......@@ -7,7 +7,7 @@ add_library(plasma_containmentactions_switchactivity MODULE ${switchactivity_SRC
kcoreaddons_desktop_to_json(plasma_containmentactions_switchactivity plasma-containmentactions-switchactivity.desktop)
target_link_libraries(plasma_containmentactions_switchactivity
Qt5::Widgets
Qt::Widgets
KF5::Plasma
KF5::KIOCore
KF5::Activities
......
......@@ -7,7 +7,7 @@ add_library(plasma_containmentactions_switchdesktop MODULE ${switchdesktop_SRCS}
kcoreaddons_desktop_to_json(plasma_containmentactions_switchdesktop plasma-containmentactions-switchdesktop.desktop)
target_link_libraries(plasma_containmentactions_switchdesktop
Qt5::Widgets
Qt::Widgets
KF5::Plasma
PW::LibTaskManager
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment