1 ## install the cmake files
3 file(GLOB cmakeFiles "${CMAKE_CURRENT_SOURCE_DIR}/*.cmake")
5 set(module_install_dir ${DATA_INSTALL_DIR}/cmake/modules )
7 install( FILES cmake-modules-styleguide.txt kde4init_dummy.cpp.in kde4init_win32lib_dummy.cpp.in kde4_cmake_uninstall.cmake.in kde4automoc.files.in ${cmakeFiles}
8 DESTINATION ${module_install_dir} )
10 # the files listed here will be removed by remove_obsoleted_cmake_files.cmake, Alex
14 # can be removed once we require merge into cmake
18 # can be removed once we require cmake 2.4.6 or newer:
21 #install(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake )
23 #file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "#generated by cmake, dont edit\n\n")
24 #foreach ( _current_FILE ${FILES_TO_REMOVE})
25 # file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "message(STATUS \"Removing ${_current_FILE}\" )\n" )
26 # file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "exec_program( ${CMAKE_COMMAND} ARGS -E remove ${_current_FILE} OUTPUT_VARIABLE _dummy)\n" )
27 #endforeach ( _current_FILE)
29 # with cmake 2.6 and above create and install a man page for the kdelibs cmake modules
30 # (cmake 2.4 doesn't support creating documentation for cmake modules in custom directories)
31 if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER "2.5")
32 add_custom_target(KDECMakeModulesManPage ALL COMMAND ${CMAKE_COMMAND} -DCMAKE_MODULE_PATH=${CMAKE_CURRENT_SOURCE_DIR} --help-custom-modules ${CMAKE_CURRENT_BINARY_DIR}/kdecmake.1)
33 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kdecmake.1 DESTINATION "${MAN_INSTALL_DIR}/man1")
34 endif("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER "2.5")