add more spacing
[personal-kdebase.git] / workspace / kdm / kfrontend / CMakeLists.txt
blob22b5a80e4a759837605cd3bcf0b893cf1a8bf53a
1 include(MacroAddFileDependencies)
3 add_subdirectory( themes )
4 add_subdirectory( pics )
5 add_subdirectory( sessions )
7 include_directories(
8         ${KDEBASE_WORKSPACE_SOURCE_DIR}/kcontrol/kdm/background
9         ${KDEBASE_WORKSPACE_SOURCE_DIR}/libs/kdm
10         ${QIMAGEBLITZ_INCLUDES}
13 set(kdmthemer_SRCS
14         themer/kdmthemer.cpp
15         themer/kdmthemer.h
16         themer/kdmitem.cpp
17         themer/kdmitem.h
18         themer/kdmpixmap.cpp
19         themer/kdmpixmap.h
20         themer/kdmrect.cpp
21         themer/kdmrect.h
22         themer/kdmlist.cpp
23         themer/kdmlist.h
24         themer/kdmlabel.cpp
25         themer/kdmlabel.h
26         themer/kdmbutton.cpp
27         themer/kdmbutton.h
28         themer/kdmlayout.cpp
29         themer/kdmlayout.h
30         themer/parse.cpp
31         themer/parse.h
33 set(kdm_greet_SRCS
34         kdm_greet.c
35         kdm_greet.h
36         kdmconfig.cpp
37         kdmconfig.h
38         kdmclock.cpp
39         kdmclock.h
40         kfdialog.cpp
41         kfdialog.h
42         kgdialog.cpp
43         kgdialog.h
44         kgverify.cpp
45         kgverify.h
46         kdmshutdown.cpp
47         kdmshutdown.h
48         kgreeter.cpp
49         kgreeter.h
50         kgapp.cpp
51         kgapp.h
52         utils.cpp
53         utils.h
54         ${kdmthemer_SRCS}
57 if (XDMCP)
58         set(kdm_greet_SRCS ${kdm_greet_SRCS}
59                 kchooser.cpp
60                 kchooser.h
61         )
62 endif (XDMCP)
64 if (WITH_KDM_XCONSOLE)
65         set(kdm_greet_SRCS ${kdm_greet_SRCS}
66                 kconsole.cpp
67                 kconsole.h
68         )
69 endif (WITH_KDM_XCONSOLE)
71 macro_add_file_dependencies(kdm_greet.h ${confci})
72 kde4_add_executable(kdm_greet ${kdm_greet_SRCS})
73 target_link_libraries(kdm_greet ${KDE4_KDEUI_LIBS} ${QT_QTXML_LIBRARY} ${X11_X11_LIB} ${POSIX4_LIBRARIES})
74 if (X11_XTest_FOUND)
75   target_link_libraries(kdm_greet ${X11_XTest_LIB})
76 endif (X11_XTest_FOUND)
77 if (WITH_KDM_XCONSOLE)
78   target_link_libraries(kdm_greet ${KDE4_KPTY_LIBS})
79 endif (WITH_KDM_XCONSOLE)
81 install(TARGETS kdm_greet DESTINATION ${LIBEXEC_INSTALL_DIR})
83 set(kdm_config_SRCS kdm_config.c)
84 macro_add_file_dependencies(kdm_config.c ${confci})
85 kde4_add_executable(kdm_config NOGUI ${kdm_config_SRCS})
86 macro_add_compile_flags(kdm_config -U_REENTRANT)
87 target_link_libraries(kdm_config ${SOCKET_LIBRARIES} ${RESOLV_LIBRARIES} ${POSIX4_LIBRARIES})
88 install(TARGETS kdm_config DESTINATION ${LIBEXEC_INSTALL_DIR})
90 set(krootimage_SRCS krootimage.cpp krootimage.h ${backgroundlib_SRCS})
91 kde4_add_executable(krootimage ${krootimage_SRCS})
92 target_link_libraries(krootimage ${KDE4_KDEUI_LIBS} ${X11_X11_LIB} ${QIMAGEBLITZ_LIBRARIES})
93 install(TARGETS krootimage DESTINATION ${LIBEXEC_INSTALL_DIR})
95 set(genkdmconf_SRCS genkdmconf.c)
96 macro_add_file_dependencies(genkdmconf.c ${confci})
97 kde4_add_executable(genkdmconf NOGUI RUN_UNINSTALLED ${genkdmconf_SRCS})
98 macro_add_compile_flags(genkdmconf -U_REENTRANT)
99 target_link_libraries(genkdmconf ${X11_LIBRARIES})
100 install(TARGETS genkdmconf ${INSTALL_TARGETS_DEFAULT_ARGS})
102 set(kdmctl_SRCS kdmctl.c)
103 kde4_add_executable(kdmctl ${kdmctl_SRCS})
104 macro_add_compile_flags(kdmctl -U_REENTRANT)
105 target_link_libraries(kdmctl ${SOCKET_LIBRARIES})
106 install(TARGETS kdmctl ${INSTALL_TARGETS_DEFAULT_ARGS})
108 build_confci()
110 ## use 'GENKDMCONF_FLAGS=... make install' to add flags to the config generation (try genkdmconf -h)
111 install(CODE "
112 exec_program(\"${CMAKE_CURRENT_BINARY_DIR}/genkdmconf\" ARGS --in \\\"\\\$DESTDIR${CONFIG_INSTALL_DIR}/kdm\\\" --no-in-notice --face-src \\\"${CMAKE_CURRENT_SOURCE_DIR}/pics\\\" \\\$GENKDMCONF_FLAGS)