26 set(kdm_SRCS ${kdm_SRCS}
35 set(kdm_SRCS ${kdm_SRCS}
40 set(kdm_SRCS ${kdm_SRCS}
45 set(kdm_SRCS ${kdm_SRCS}
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}
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)
68 target_link_libraries( kdm ${UTIL_LIBRARIES} )
70 target_link_libraries( kdm ${POSIX4_LIBRARIES} )
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})