mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-27 04:13:02 +00:00

now with separate options for screen and sleep power management suppression as well as being able to select which battery to show information (including icon) for in the tray: https://ibb.co/DDC01rh the battery icon is questionably bigger than it should be, have to test it with battery that is recognizable still (PS3 controller battery provides only capacity and status info) Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
27 lines
707 B
CMake
27 lines
707 B
CMake
|
|
set(powermanagement_engine_SRCS
|
|
powermanagementengine.cpp
|
|
powermanagementjob.cpp
|
|
powermanagementservice.cpp
|
|
)
|
|
|
|
set(krunner_xml ${CMAKE_SOURCE_DIR}/krunner/dbus/org.kde.krunner.App.xml)
|
|
QT4_ADD_DBUS_INTERFACE(powermanagement_engine_SRCS ${krunner_xml} krunner_interface)
|
|
|
|
kde4_add_plugin(plasma_engine_powermanagement ${powermanagement_engine_SRCS})
|
|
target_link_libraries(plasma_engine_powermanagement
|
|
KDE4::kdecore
|
|
KDE4::solid
|
|
KDE4::plasma
|
|
KDE4::kidletime
|
|
kworkspace
|
|
)
|
|
|
|
install(
|
|
TARGETS plasma_engine_powermanagement
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
|
|
)
|
|
install(
|
|
FILES plasma-dataengine-powermanagement.desktop
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
|
)
|