source: cmake/modules/TargetDistclean.cmake @ 5d825c

Revision 5d825c, 511 bytes checked in by Jaromil <jaromil@…>, 3 years ago (diff)

added distclean target to cmake
for better cleanup when making releases
also added cmake build files in .gitignore

  • Property mode set to 100644
Line 
1# add custom target distclean
2# cleans and removes cmake generated files etc.
3# Jan Woetzel 04/2003
4#
5
6IF (UNIX)
7  ADD_CUSTOM_TARGET (distclean @echo cleaning for source distribution)
8  SET(DISTCLEANED
9   cmake.depends
10   cmake.check_depends
11   CMakeCache.txt
12   cmake.check_cache
13   *.cmake
14   Makefile
15   core core.*
16   gmon.out
17   *~
18  )
19 
20  ADD_CUSTOM_COMMAND(
21    DEPENDS clean
22    COMMENT "distribution clean"
23    COMMAND rm
24    ARGS    -Rf CMakeTmp ${DISTCLEANED}
25    TARGET  distclean
26  )
27ENDIF(UNIX)
28
Note: See TracBrowser for help on using the repository browser.