Added support for dbusmenu
[dbusmenu:kdebase-workspace.git] / plasma / generic / dataengines / statusnotifieritem / CMakeLists.txt
1 project(plasma-statusnotifieritem_engine)
2
3 include_directories(${KDEBASE_WORKSPACE_SOURCE_DIR}/statusnotifierwatcher)
4 include_directories(${DBUSMENUQT_INCLUDE_DIR})
5
6 # We add our source code here
7 set(statusnotifieritem_engine_SRCS
8     statusnotifieritem_engine.cpp
9     statusnotifieritemsource.cpp
10     statusnotifieritemservice.cpp
11     statusnotifieritemjob.cpp
12     systemtraytypes.cpp
13 )
14
15 set(statusnotifierwatcher_xml ${KDE4_DBUS_INTERFACES_DIR}/org.kde.StatusNotifierWatcher.xml)
16 QT4_ADD_DBUS_INTERFACE(statusnotifieritem_engine_SRCS ${statusnotifierwatcher_xml} statusnotifierwatcher_interface)
17
18 set(statusnotifieritem_xml ${KDE4_DBUS_INTERFACES_DIR}/org.kde.StatusNotifierItem.xml)
19
20 set_source_files_properties(${statusnotifieritem_xml} PROPERTIES
21    NO_NAMESPACE false
22    INCLUDE "systemtraytypes.h"
23    CLASSNAME OrgKdeStatusNotifierItem
24 )
25 QT4_ADD_DBUS_INTERFACE(statusnotifieritem_engine_SRCS ${statusnotifieritem_xml} statusnotifieritem_interface)
26
27 kde4_add_plugin(plasma_engine_statusnotifieritem ${statusnotifieritem_engine_SRCS})
28 target_link_libraries(plasma_engine_statusnotifieritem ${KDE4_KDEUI_LIBS} ${KDE4_PLASMA_LIBS} ${DBUSMENUQT_LIBRARIES})
29
30 install(TARGETS plasma_engine_statusnotifieritem DESTINATION ${PLUGIN_INSTALL_DIR})
31 install(FILES plasma_engine_statusnotifieritem.desktop DESTINATION ${SERVICES_INSTALL_DIR})
32 install(FILES statusnotifieritem.operations DESTINATION ${DATA_INSTALL_DIR}/plasma/services)
33