fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / cmake / modules / CMakeLists.txt
blob675659c48a5e1887cc55d456eed94c82ad12201a
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 
8                kde4init_dummy.cpp.in 
9                kde4init_win32lib_dummy.cpp.in 
10                kde4_cmake_uninstall.cmake.in 
11                kde4automoc.files.in 
12                BasicFindPackageVersion.cmake.in
13                FindLibPython.py
14                FindPyKDE4.py
15                FindPyQt.py
16                FindSIP.py
17                PythonCompile.py
18                ${cmakeFiles} 
19          DESTINATION ${module_install_dir}  )
21 # the files listed here will be removed by remove_obsoleted_cmake_files.cmake, Alex
22 #set(FILES_TO_REMOVE
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")