1 include(MacroAddFileDependencies)
3 add_subdirectory( themes )
4 add_subdirectory( pics )
5 add_subdirectory( sessions )
8 ${KDEBASE_WORKSPACE_SOURCE_DIR}/kcontrol/kdm/background
9 ${KDEBASE_WORKSPACE_SOURCE_DIR}/libs/kdm
10 ${QIMAGEBLITZ_INCLUDES}
58 set(kdm_greet_SRCS ${kdm_greet_SRCS}
64 if (WITH_KDM_XCONSOLE)
65 set(kdm_greet_SRCS ${kdm_greet_SRCS}
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})
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})
110 ## use 'GENKDMCONF_FLAGS=... make install' to add flags to the config generation (try genkdmconf -h)
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)