2013-08-13 23:03:46 +01:00
|
|
|
set(kdeconnect_battery_SRCS
|
|
|
|
batteryplugin.cpp
|
|
|
|
batterydbusinterface.cpp
|
2013-08-12 15:09:52 +01:00
|
|
|
)
|
|
|
|
|
2013-08-13 23:03:46 +01:00
|
|
|
kde4_add_plugin(kdeconnect_battery ${kdeconnect_battery_SRCS})
|
|
|
|
|
2014-06-14 13:31:31 +01:00
|
|
|
target_link_libraries(kdeconnect_battery kdeconnectcore ${KDE4_KDEUI_LIBS})
|
2013-08-13 23:03:46 +01:00
|
|
|
|
|
|
|
install(TARGETS kdeconnect_battery DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
|
|
install(FILES kdeconnect_battery.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
|
|
|
2014-11-10 06:10:51 +00:00
|
|
|
include(DbusInterfaceMacros)
|
2013-08-13 23:03:46 +01:00
|
|
|
|
2013-08-12 15:09:52 +01:00
|
|
|
generate_and_install_dbus_interface(
|
2013-08-13 23:03:46 +01:00
|
|
|
kdeconnect_battery
|
|
|
|
batterydbusinterface.h
|
|
|
|
org.kde.kdeconnect.device.battery.xml
|
2013-08-12 15:09:52 +01:00
|
|
|
OPTIONS -a
|
|
|
|
)
|