not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kdm / CMakeLists.txt
blob0d906eed2081d680bf12a455fd1ce763bd033d8e
1 include_directories( BEFORE ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/backend )
4 install_pam_service(KDM)
6 include(ConfigureChecks.cmake)
8 install( FILES README DESTINATION ${DATA_INSTALL_DIR}/doc/kdm )
10 set(confproc ${CMAKE_CURRENT_SOURCE_DIR}/confproc.pl)
11 set(confdef ${CMAKE_CURRENT_SOURCE_DIR}/config.def)
12 set(confci ${CMAKE_CURRENT_BINARY_DIR}/config.ci)
13 macro_additional_clean_files( ${confci} )
15 macro(build_confci)
16         add_custom_command(
17                 OUTPUT ${confci}
18                 COMMAND ${PERL_EXECUTABLE} -w ${confproc} ${confdef} ${confci}
19                 MAIN_DEPENDENCY ${confdef}
20                 DEPENDS ${confproc}
21         )
22 endmacro(build_confci)
24 build_confci()
25 add_custom_target(config.ci DEPENDS ${confci})
27 ### this is *only* for the kdm home page maintainer! ###
28 ADD_CUSTOM_TARGET(hp scp
29         ${CMAKE_CURRENT_SOURCE_DIR}/README
30         ${CMAKE_CURRENT_SOURCE_DIR}/ChangeLog
31         ${CMAKE_CURRENT_SOURCE_DIR}/TODO
32         devel-home:files/kdm)
34 # after build_confci is defined
35 add_subdirectory(backend)
36 add_subdirectory(kfrontend)