Commit e53f5dd6 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

GIT_SILENT
parent f7022654
......@@ -22,7 +22,7 @@ find_package (KF5Crash ${KF5_MIN_VERSION} CONFIG REQUIRED)
add_library(kactivitymanagerd_plugin SHARED Plugin.cpp Module.cpp Event.cpp ${debug_SRCS})
generate_export_header(kactivitymanagerd_plugin)
target_link_libraries(kactivitymanagerd_plugin PUBLIC Qt5::Core Qt5::DBus KF5::CoreAddons KF5::ConfigCore)
target_link_libraries(kactivitymanagerd_plugin PUBLIC Qt::Core Qt::DBus KF5::CoreAddons KF5::ConfigCore)
add_subdirectory (plugins)
......@@ -60,10 +60,10 @@ qt5_add_dbus_adaptor (
add_executable (kactivitymanagerd ${kactivitymanager_SRCS})
target_link_libraries (kactivitymanagerd
Qt5::Core
Qt5::DBus
Qt5::Gui
Qt5::Widgets
Qt::Core
Qt::DBus
Qt::Gui
Qt::Widgets
KF5::DBusAddons
KF5::CoreAddons
KF5::ConfigCore
......
......@@ -21,8 +21,8 @@ kcoreaddons_add_plugin(
target_link_libraries (
kactivitymanagerd_plugin_activitytemplates
Qt5::Core
Qt5::DBus
Qt::Core
Qt::DBus
KF5::ConfigCore
KF5::DBusAddons
KF5::CoreAddons
......
......@@ -18,8 +18,8 @@ kcoreaddons_add_plugin(
target_link_libraries (
kactivitymanagerd_plugin_eventspy
Qt5::Core
Qt5::DBus
Qt::Core
Qt::DBus
KF5::ConfigCore
KF5::CoreAddons
KF5::KIOCore
......
......@@ -16,9 +16,9 @@ kcoreaddons_add_plugin(
target_link_libraries (
kactivitymanagerd_plugin_globalshortcuts
Qt5::Core
Qt5::DBus
Qt5::Widgets
Qt::Core
Qt::DBus
Qt::Widgets
KF5::ConfigCore
KF5::GlobalAccel
KF5::I18n
......
......@@ -25,8 +25,8 @@ kcoreaddons_add_plugin(
target_link_libraries (
kactivitymanagerd_plugin_gtk_eventspy
Qt5::Core
Qt5::Xml
Qt::Core
Qt::Xml
KF5::CoreAddons
KF5::Service
kactivitymanagerd_plugin
......
......@@ -18,9 +18,9 @@ kcoreaddons_add_plugin (
target_link_libraries (
kactivitymanagerd_plugin_runapplication
Qt5::Core
Qt5::DBus
Qt5::Gui
Qt::Core
Qt::DBus
Qt::Gui
KF5::CoreAddons
KF5::ConfigCore
KF5::Service
......
......@@ -23,8 +23,8 @@ kcoreaddons_add_plugin(
target_link_libraries (
kactivitymanagerd_plugin_slc
Qt5::Core
Qt5::DBus
Qt::Core
Qt::DBus
KF5::ConfigCore
KF5::DBusAddons
KF5::CoreAddons
......
......@@ -40,8 +40,8 @@ kcoreaddons_add_plugin(
target_link_libraries (
kactivitymanagerd_plugin_sqlite
Qt5::Core
Qt5::Sql
Qt::Core
Qt::Sql
KF5::ConfigCore
KF5::KIOCore
KF5::DBusAddons
......
......@@ -17,8 +17,8 @@ kcoreaddons_add_plugin(
target_link_libraries (
kactivitymanagerd_plugin_virtualdesktopswitch
Qt5::Core
Qt5::DBus
Qt::Core
Qt::DBus
KF5::ConfigCore
KF5::WindowSystem
KF5::CoreAddons
......
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