add more spacing
[personal-kdebase.git] / workspace / krunner / lock / CMakeLists.txt
blob84fe257c178d7372c37632fec577efb5faa7edf6
1 include_directories( ${KDEBASE_WORKSPACE_SOURCE_DIR}/krunner ${KDEBASE_WORKSPACE_SOURCE_DIR}/kcheckpass ${KDEBASE_WORKSPACE_SOURCE_DIR}/libs/kdm )
3 ########### next target ###############
5 check_library_exists(Xxf86misc XF86MiscSetGrabKeysState "" HAVE_XF86MISCSETGRABKEYSSTATE)
6 if(WITH_OpenGL)
7 check_library_exists(GL glXChooseVisual "" HAVE_GLXCHOOSEVISUAL)
8 endif(WITH_OpenGL)
10 configure_file(config-krunner-lock.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-krunner-lock.h)
12 set(kscreenlocker_SRCS
13    lockprocess.cc
14    lockdlg.cc
15    autologout.cc
16    main.cc )
18 set(plasmaapp_dbusXML ../../plasma/shells/screensaver/org.kde.plasma-overlay.App.xml)
19 qt4_add_dbus_interface(kscreenlocker_SRCS ${plasmaapp_dbusXML} plasmaapp_interface)
21 set(lockprocess_dbusXML org.kde.screenlocker.LockProcess.xml)
22 qt4_generate_dbus_interface(lockprocess.h ${lockprocess_dbusXML} OPTIONS -m)
23 qt4_add_dbus_adaptor(kscreenlocker_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${lockprocess_dbusXML} lockprocess.h LockProcess)
25 set(ksmserver_xml  ${KDEBASE_WORKSPACE_SOURCE_DIR}/ksmserver/org.kde.KSMServerInterface.xml)
26 QT4_ADD_DBUS_INTERFACE(kscreenlocker_SRCS ${ksmserver_xml} ksmserver_interface)
27 set(kscreensaver_xml  ${KDEBASE_WORKSPACE_SOURCE_DIR}/krunner/dbus/org.kde.screensaver.xml)
28 QT4_ADD_DBUS_INTERFACE(kscreenlocker_SRCS ${kscreensaver_xml} kscreensaver_interface)
30 set(kxkb_adaptor ${KDEBASE_WORKSPACE_SOURCE_DIR}/kcontrol/kxkb/kxkb_adaptor.h)
31 set(kxkb_xml ${CMAKE_CURRENT_BINARY_DIR}/org.kde.KXKB.xml)
32 ADD_CUSTOM_COMMAND(OUTPUT ${kxkb_xml}
33        COMMAND ${QT_DBUSCPP2XML_EXECUTABLE} ${kxkb_adaptor} > ${kxkb_xml}
34        DEPENDS ${kxkb_adaptor})
35 QT4_ADD_DBUS_INTERFACE( kscreenlocker_SRCS ${kxkb_xml} kxkb_interface )
39 kde4_add_kcfg_files(kscreenlocker_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../kcfg/kscreensaversettings.kcfgc)
43 kde4_add_executable(kscreenlocker ${kscreenlocker_SRCS})
45 target_link_libraries(kscreenlocker  ${KDE4_KDEUI_LIBS} ${X11_LIBRARIES})
47 find_library(DL_LIBRARY dl)
48 if (DL_LIBRARY)
49   target_link_libraries(kscreenlocker ${DL_LIBRARY})
50 endif(DL_LIBRARY)
52 target_link_libraries(kscreenlocker kworkspace)
54 if (HAVE_XF86MISC)
55   target_link_libraries(kscreenlocker ${X11_Xxf86misc_LIB})
56 endif (HAVE_XF86MISC)
58 if(HAVE_GLXCHOOSEVISUAL)
59    target_link_libraries(kscreenlocker ${OPENGL_gl_LIBRARY})
60 endif(HAVE_GLXCHOOSEVISUAL)
62 install(TARGETS kscreenlocker DESTINATION ${LIBEXEC_INSTALL_DIR})
64 install_pam_service(kscreensaver)
67 ########### install files ###############