Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
PowerDevil
Commits
ba2c8f1d
Commit
ba2c8f1d
authored
Mar 24, 2022
by
Laurent Montel
Browse files
Adapt build system for building against qt6 (need kscreen not ported yet)
parent
761fc8a4
Pipeline
#154359
passed with stage
in 1 minute and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
ba2c8f1d
...
...
@@ -23,7 +23,10 @@ include(KDECMakeSettings)
include
(
KDECompilerSettings NO_POLICY_SCOPE
)
include
(
KDEClangFormat
)
find_package
(
Qt5
${
QT_MIN_VERSION
}
CONFIG REQUIRED COMPONENTS Widgets DBus X11Extras
)
find_package
(
Qt
${
QT_MAJOR_VERSION
}
${
QT_MIN_VERSION
}
CONFIG REQUIRED COMPONENTS Widgets DBus
)
if
(
QT_MAJOR_VERSION EQUAL
"5"
)
find_package
(
Qt5
${
QT_MIN_VERSION
}
CONFIG REQUIRED X11Extras
)
endif
()
find_package
(
KF5
${
KF5_MIN_VERSION
}
REQUIRED COMPONENTS Activities Auth IdleTime Config DBusAddons Solid I18n GlobalAccel KIO NotifyConfig Wayland DocTools Crash Notifications Kirigami2
)
find_package
(
KF5Screen CONFIG REQUIRED
)
find_package
(
LibKWorkspace CONFIG REQUIRED
)
...
...
daemon/CMakeLists.txt
View file @
ba2c8f1d
...
...
@@ -67,14 +67,14 @@ if(HAVE_WIRELESS_SUPPORT)
qt_add_dbus_adaptor
(
powerdevilcore_SRCS actions/bundled/org.kde.Solid.PowerManagement.Actions.WirelessPowerSaving.xml
actions/bundled/wirelesspowersaving.h PowerDevil::BundledActions::WirelessPowerSaving
)
endif
()
qt
5
_add_dbus_adaptor
(
powerdevilcore_SRCS actions/bundled/org.kde.Solid.PowerManagement.Actions.PowerProfile.xml
qt_add_dbus_adaptor
(
powerdevilcore_SRCS actions/bundled/org.kde.Solid.PowerManagement.Actions.PowerProfile.xml
actions/bundled/powerprofile.h PowerDevil::BundledActions::PowerProfile
)
qt_add_dbus_interface
(
powerdevilcore_SRCS org.freedesktop.ScreenSaver.xml screenlocker_interface
)
qt
5
_add_dbus_interface
(
powerdevilcore_SRCS actions/bundled/org.freedesktop.DBus.Properties.xml properties_interface
)
qt_add_dbus_interface
(
powerdevilcore_SRCS actions/bundled/org.freedesktop.DBus.Properties.xml properties_interface
)
qt
5
_add_dbus_interface
(
powerdevilcore_SRCS actions/bundled/net.hadess.PowerProfiles.xml power_profiles_interface
)
qt_add_dbus_interface
(
powerdevilcore_SRCS actions/bundled/net.hadess.PowerProfiles.xml power_profiles_interface
)
add_library
(
powerdevilcore SHARED
${
powerdevilcore_SRCS
}
${
powerdevil_bundled_actions_SRCS
}
)
set_target_properties
(
powerdevilcore PROPERTIES VERSION
${
PROJECT_VERSION
}
SOVERSION 2
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment