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
9 kde4init_win32lib_dummy.cpp.in
10 kde4_cmake_uninstall.cmake.in
12 BasicFindPackageVersion.cmake.in
19 DESTINATION ${module_install_dir} )
21 # the files listed here will be removed by remove_obsoleted_cmake_files.cmake, Alex
25 #install(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake )
27 #file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "#generated by cmake, dont edit\n\n")
28 #foreach ( _current_FILE ${FILES_TO_REMOVE})
29 # file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "message(STATUS \"Removing ${_current_FILE}\" )\n" )
30 # file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "exec_program( ${CMAKE_COMMAND} ARGS -E remove ${_current_FILE} OUTPUT_VARIABLE _dummy)\n" )
31 #endforeach ( _current_FILE)
33 # create and install a man page for the kdelibs cmake modules
34 add_custom_target(KDECMakeModulesManPage ALL COMMAND ${CMAKE_COMMAND} -DCMAKE_MODULE_PATH=${CMAKE_CURRENT_SOURCE_DIR} --help-custom-modules ${CMAKE_CURRENT_BINARY_DIR}/kdecmake.1)
35 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kdecmake.1 DESTINATION "${MAN_INSTALL_DIR}/man1")