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)
7 check_library_exists(GL glXChooseVisual "" HAVE_GLXCHOOSEVISUAL)
10 configure_file(config-krunner-lock.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-krunner-lock.h)
12 set(kscreenlocker_SRCS
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)
49 target_link_libraries(kscreenlocker ${DL_LIBRARY})
52 target_link_libraries(kscreenlocker kworkspace)
55 target_link_libraries(kscreenlocker ${X11_Xxf86misc_LIB})
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 ###############