~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to krunner/lock/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include_directories( ${KDEBASE_WORKSPACE_SOURCE_DIR}/krunner ${KDEBASE_WORKSPACE_SOURCE_DIR}/kcheckpass ${KDEBASE_WORKSPACE_SOURCE_DIR}/libs/kdm )
 
2
 
 
3
########### next target ###############
 
4
 
 
5
check_library_exists(Xxf86misc XF86MiscSetGrabKeysState "" HAVE_XF86MISCSETGRABKEYSSTATE)
 
6
if(WITH_OpenGL)
 
7
check_library_exists(GL glXChooseVisual "" HAVE_GLXCHOOSEVISUAL)
 
8
endif(WITH_OpenGL)
 
9
 
 
10
configure_file(config-krunner-lock.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-krunner-lock.h)
 
11
 
 
12
set(kscreenlocker_SRCS
 
13
   lockprocess.cc
 
14
   lockdlg.cc
 
15
   autologout.cc
 
16
   main.cc )
 
17
 
 
18
set(plasmaapp_dbusXML ../../plasma/screensaver/shell/org.kde.plasma-overlay.App.xml)
 
19
qt4_add_dbus_interface(kscreenlocker_SRCS ${plasmaapp_dbusXML} plasmaapp_interface)
 
20
 
 
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)
 
24
 
 
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)
 
29
 
 
30
 
 
31
 
 
32
kde4_add_kcfg_files(kscreenlocker_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../kcfg/kscreensaversettings.kcfgc)
 
33
 
 
34
 
 
35
 
 
36
kde4_add_executable(kscreenlocker ${kscreenlocker_SRCS})
 
37
 
 
38
target_link_libraries(kscreenlocker kephal ${KDE4_KDEUI_LIBS} ${X11_LIBRARIES})
 
39
 
 
40
find_library(DL_LIBRARY dl)
 
41
if (DL_LIBRARY)
 
42
  target_link_libraries(kscreenlocker ${DL_LIBRARY})
 
43
endif(DL_LIBRARY)
 
44
 
 
45
if (HAVE_XF86MISC)
 
46
  target_link_libraries(kscreenlocker ${X11_Xxf86misc_LIB})
 
47
endif (HAVE_XF86MISC)
 
48
 
 
49
if(HAVE_GLXCHOOSEVISUAL)
 
50
   target_link_libraries(kscreenlocker ${OPENGL_gl_LIBRARY})
 
51
endif(HAVE_GLXCHOOSEVISUAL)
 
52
 
 
53
install(TARGETS kscreenlocker DESTINATION ${LIBEXEC_INSTALL_DIR})
 
54
 
 
55
install_pam_service(kscreensaver)
 
56
 
 
57
 
 
58
########### install files ###############
 
59
 
 
60
 
 
61
install( FILES kscreenlocker.notifyrc  DESTINATION  ${DATA_INSTALL_DIR}/kscreenlocker )
 
62