not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kdm / backend / CMakeLists.txt
blob93a5f690b0d590396ea820b53e6f21057292d795
1 set(kdm_SRCS
2         dm.h
3         auth.c
4         bootman.c
5         client.c
6         ctrl.c
7         daemon.c
8         dm.c
9         dpylist.c
10         error.c
11         genauth.c
12         inifile.c
13         mitauth.c
14         netaddr.c
15         process.c
16         reset.c
17         resource.c
18         server.c
19         session.c
20         sessreg.c
21         socket.c
22         streams.c
23         util.c
25 if (XDMCP)
26         set(kdm_SRCS ${kdm_SRCS}
27                 access.c
28                 choose.c
29                 protodpy.c
30                 policy.c
31                 xdmcp.c
32         )
33 endif (XDMCP)
34 if (HASXDMAUTH)
35         set(kdm_SRCS ${kdm_SRCS}
36                 xdmauth.c
37         )
38 endif (HASXDMAUTH)
39 if (K5AUTH)
40         set(kdm_SRCS ${kdm_SRCS}
41                 krb5auth.c
42         )
43 endif (K5AUTH)
44 if (SECURE_RPC)
45         set(kdm_SRCS ${kdm_SRCS}
46                 rpcauth.c
47         )
48 endif (SECURE_RPC)
49 macro_add_file_dependencies(dm.h ${confci})
50 macro_add_file_dependencies(error.c ${CMAKE_CURRENT_SOURCE_DIR}/printf.c)
51 kde4_add_executable(kdm NOGUI ${kdm_SRCS})
52 macro_add_compile_flags(kdm -U_REENTRANT)
53 target_link_libraries( kdm
54         ${X11_X11_LIB} ${X11_Xau_LIB} ${X11_Xdmcp_LIB} ${X11_X_EXTRA_LIBS}
55         ${UNIXAUTH_LIBRARIES}
56         ${SHADOW_LIBRARIES}
57         ${S_LIBRARIES}
58         ${KRB4_LIBRARIES}
59         ${KRB5_LIBRARIES}
60         ${SOCKET_LIBRARIES}
61         ${RESOLV_LIBRARIES}
63 if (CKCONNECTOR_FOUND)
64         include_directories(${CKCONNECTOR_INCLUDE_DIR} ${DBUS_INCLUDE_DIR} ${DBUS_ARCH_INCLUDE_DIR})
65         target_link_libraries( kdm ${CKCONNECTOR_LIBRARIES} ${DBUS_LIBRARIES} )
66 endif (CKCONNECTOR_FOUND)
67 if(UTIL_LIBRARIES)
68         target_link_libraries( kdm ${UTIL_LIBRARIES} )
69 endif(UTIL_LIBRARIES)
70 target_link_libraries( kdm ${POSIX4_LIBRARIES} )
72 if(KDE4_ENABLE_FINAL)
73         macro_add_file_dependencies(${CMAKE_CURRENT_BINARY_DIR}/kdm_final_cpp.cpp ${confci})
74 endif(KDE4_ENABLE_FINAL)
76 install(TARGETS kdm ${INSTALL_TARGETS_DEFAULT_ARGS})
78 build_confci()