not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kcheckpass / CMakeLists.txt
blob2c5ff11e6e69c18a38024cf9b64ee69e5635a652
2 include_directories( ${UNIXAUTH_INCLUDE_DIRS} )
3 check_include_files(paths.h HAVE_PATHS_H)
4 configure_file (config-kcheckpass.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kcheckpass.h )
6 set(kcheckpass_SRCS
7         kcheckpass.h
8         kcheckpass.c
9         checkpass_etcpasswd.c
10         checkpass_pam.c
11         checkpass_shadow.c
12         checkpass_osfc2passwd.c
13         checkpass_aix.c
16 kde4_add_executable(kcheckpass NOGUI ${kcheckpass_SRCS})
18 if (KDE4_ENABLE_FPIE)
19         macro_add_compile_flags(kcheckpass ${KDE4_CXX_FPIE_FLAGS})
20         macro_add_link_flags(kcheckpass ${KDE4_PIE_LDFLAGS})
21 endif (KDE4_ENABLE_FPIE)
23 macro_add_compile_flags(kcheckpass -U_REENTRANT)
24 target_link_libraries(kcheckpass ${KDE4_KDEFAKES_LIBS} ${UNIXAUTH_LIBRARIES} ${SOCKET_LIBRARIES})
25 install(TARGETS kcheckpass DESTINATION ${LIBEXEC_INSTALL_DIR})
26 install(CODE "
27     set(KCP_PATH \"\$ENV{DESTDIR}${LIBEXEC_INSTALL_DIR}/kcheckpass\")
28     EXECUTE_PROCESS(COMMAND sh -c \"chown root '\${KCP_PATH}' && chmod +s '\${KCP_PATH}'\")
31 install_pam_service(kcheckpass)
33 #EXTRA_DIST = README