delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / workspace / plasma / shells / desktop / CMakeLists.txt
blobada5620b3d56830cfda4ae22b20fe7b6436cd125
1 include_directories(${KDEBASE_WORKSPACE_SOURCE_DIR}/libs ${KDEBASE_WORKSPACE_SOURCE_DIR}/plasma/shells/common ${KDEBASE_WORKSPACE_SOURCE_DIR}/libs/kephal)
3 add_subdirectory(configupdates)
5 set(appletbrowserdialog_SRCS
6     ../common/appletbrowser.cpp
7     ../common/customdragtreeview.cpp
8     ../common/kcategorizeditemsview.cpp
9     ../common/kcategorizeditemsviewdelegate.cpp
10     ../common/kcategorizeditemsviewmodels.cpp
11     ../common/openwidgetassistant.cpp
12     ../common/plasmaappletitemmodel.cpp
15 set(wallpaper_SRCS
16     ../common/wallpaperpreview.cpp
19 kde4_add_ui_files (
20     appletbrowserdialog_SRCS
21     ../common/kcategorizeditemsviewbase.ui
24 set(plasma_SRCS
25     backgrounddialog.cpp
26     dashboardview.cpp
27     desktopcorona.cpp
28     desktopview.cpp
29     main.cpp
30     panelcontroller.cpp
31     panelview.cpp
32     panelappletoverlay.cpp
33     plasmaapp.cpp
34     positioningruler.cpp
35     toolbutton.cpp
36     ${appletbrowserdialog_SRCS}
37     ${wallpaper_SRCS}
40 kde4_add_ui_files(plasma_SRCS BackgroundDialog.ui)
41 kde4_add_kcfg_files(plasma_SRCS kcfg/plasma-shell-desktop.kcfgc)
43 if(WIN32)
44     set(plasma_SRCS ${plasma_SRCS} panelview_win.cpp)
45 endif(WIN32)
47 set(plasmaapp_dbusXML dbus/org.kde.plasma.App.xml)
48 qt4_add_dbus_adaptor(plasma_SRCS ${plasmaapp_dbusXML} plasmaapp.h PlasmaApp)
50 set(ksmserver_xml ${KDEBASE_WORKSPACE_SOURCE_DIR}/ksmserver/org.kde.KSMServerInterface.xml)
51 qt4_add_dbus_interface(plasma_SRCS ${ksmserver_xml} ksmserver_interface)
53 kde4_add_kdeinit_executable(plasma_qgv ${plasma_SRCS})
55 target_link_libraries(kdeinit_plasma_qgv ${KDE4_PLASMA_LIBS} ${KDE4_KNEWSTUFF2_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KFILE_LIBS})
57 if(UNIX AND Q_WS_X11)
58     target_link_libraries(kdeinit_plasma_qgv kworkspace ${X11_LIBRARIES})
60     if(X11_Xrender_FOUND)
61        target_link_libraries(kdeinit_plasma_qgv ${X11_Xrender_LIB})
62     endif(X11_Xrender_FOUND)
63 endif(UNIX AND Q_WS_X11)
65 set_target_properties(kdeinit_plasma_qgv PROPERTIES OUTPUT_NAME kdeinit4_plasma)
66 set_target_properties(plasma_qgv PROPERTIES OUTPUT_NAME plasma)
68 target_link_libraries(kdeinit_plasma_qgv kephal)
70 install(TARGETS kdeinit_plasma_qgv DESTINATION ${LIB_INSTALL_DIR})
71 install(TARGETS plasma_qgv ${INSTALL_TARGETS_DEFAULT_ARGS})
72 install(FILES plasma.desktop DESTINATION ${AUTOSTART_INSTALL_DIR})
73 install(FILES kcfg/plasma-shell-desktop.kcfg  DESTINATION  ${KCFG_INSTALL_DIR})
74 install(FILES plasma-themes.knsrc DESTINATION  ${CONFIG_INSTALL_DIR})