not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / libs / kephal / kded_kephal / CMakeLists.txt
bloba9b88e083af37c1d649ad8f773cf8f9264f8c2c3
1 INCLUDE_DIRECTORIES (. .. ${CMAKE_CURRENT_SOURCE_DIR}/../kephal/ ${KDE4_INCLUDES} ${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
3 configure_file (config-kephal.h.cmake
4 ${CMAKE_CURRENT_BINARY_DIR}/config-kephal.h )
6 SET (kded_kephal_SRCS
7         kephald.cpp
8         ../xml/xmltype.cpp
9         ../xml/configurations_xml.cpp
10         ../xml/xmlnodehandler.cpp
11         ../kephal/screens.cpp
12         ../screens/simplescreen.cpp
13         ../screens/output/outputscreens.cpp
14         ../screens/configuration/configurationscreens.cpp
15         dbus/dbusapi_screens.cpp
16         ../outputs/simpleoutput.cpp
17         ../outputs/desktopwidget/desktopwidgetoutputs.cpp
18         ../kephal/outputs.cpp
19         ../outputs/backendoutputs.cpp
20         dbus/dbusapi_outputs.cpp
21         dbus/dbusapi_configurations.cpp
22         ../kephal/configurations.cpp
23         ../configurations/externalconfiguration.cpp
24         ../configurations/backendconfigurations.cpp
25         ../configurations/xml/xmlconfigurations.cpp)
27 if(Q_WS_X11 AND XRANDR_1_2_FOUND)
28     SET (kded_kephal_SRCS ${kded_kephal_SRCS}
29         ../xrandr12/randr.cpp
30         ../xrandr12/randrscreen.cpp
31         ../xrandr12/randroutput.cpp
32         ../xrandr12/randrcrtc.cpp
33         ../xrandr12/randrmode.cpp
34         ../xrandr12/randrdisplay.cpp
35         ../outputs/xrandr/xrandroutputs.cpp)
36 endif(Q_WS_X11 AND XRANDR_1_2_FOUND)
38 QT4_GENERATE_DBUS_INTERFACE(dbus/dbusapi_screens.h org.kde.Kephal.Screens.xml)
39 QT4_ADD_DBUS_ADAPTOR (kded_kephal_SRCS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Kephal.Screens.xml
40         dbus/dbusapi_screens.h DBusAPIScreens)
41 QT4_GENERATE_DBUS_INTERFACE(dbus/dbusapi_outputs.h org.kde.Kephal.Outputs.xml)
42 QT4_ADD_DBUS_ADAPTOR (kded_kephal_SRCS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Kephal.Outputs.xml
43         dbus/dbusapi_outputs.h DBusAPIOutputs)
44 QT4_GENERATE_DBUS_INTERFACE(dbus/dbusapi_configurations.h org.kde.Kephal.Configurations.xml)
45 QT4_ADD_DBUS_ADAPTOR (kded_kephal_SRCS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Kephal.Configurations.xml
46         dbus/dbusapi_configurations.h DBusAPIConfigurations)
47         
48 KDE4_ADD_PLUGIN (kded_kephal ${kded_kephal_SRCS})
49 TARGET_LINK_LIBRARIES (kded_kephal ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTXML_LIBRARY} ${X11_LIBRARIES} ${X11_Xrandr_LIB})
51 INSTALL (TARGETS kded_kephal DESTINATION ${PLUGIN_INSTALL_DIR})
52 INSTALL (FILES
53         kded_kephal.desktop
54     DESTINATION ${SERVICES_INSTALL_DIR}/kded)