delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / runtime / kdedglobalaccel / CMakeLists.txt
blobbeac6f1b0215021098234cec21dde2ef16768403
1 project(kdedglobalaccel)
3 ###############################################################################
4 ### KDED Global Accel Daemon
5 add_definitions(-DKDE_DEFAULT_DEBUG_AREA=181)
7 include_directories( ${KDE4_KDEUI_INCLUDES} )
9 set(kded_globalaccel_SRCS
10     kdedglobalaccel.cpp
11     component.cpp
12     globalshortcut.cpp
13     globalshortcutsregistry.cpp
14     globalshortcutcontext.cpp)
16 if ( Q_WS_X11 )
17   set( kded_globalaccel_SRCS ${kded_globalaccel_SRCS} kglobalaccel_x11.cpp )
18 endif ( Q_WS_X11 )
19 if ( Q_WS_MAC )
20   set( kded_globalaccel_SRCS ${kded_globalaccel_SRCS} kglobalaccel_mac.cpp )
21 endif ( Q_WS_MAC )
22 if ( Q_WS_WIN )
23   set( kded_globalaccel_SRCS ${kded_globalaccel_SRCS} kglobalaccel_win.cpp )
24 endif ( Q_WS_WIN )
25 if ( Q_WS_QWS )
26   set( kded_globalaccel_SRCS ${kded_globalaccel_SRCS} kglobalaccel_qws.cpp )
27 endif ( Q_WS_QWS )
29 kde4_add_plugin( kded_globalaccel ${kded_globalaccel_SRCS} )
30 target_link_libraries(kded_globalaccel ${KDE4_KDEUI_LIBS} ${X11_LIBRARIES})
32 if(Q_WS_MAC)
33    target_link_libraries(kded_globalaccel ${CARBON_LIBRARY})
34 endif(Q_WS_MAC)
37 install( TARGETS kded_globalaccel DESTINATION ${PLUGIN_INSTALL_DIR} )
39 install( FILES kdedglobalaccel.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded )
40 install( FILES kconf/kdedglobalaccel_kde42.upd DESTINATION ${DATA_INSTALL_DIR}/kconf_update)