[Cmake] Removing cmake generated files

Andy Cedilnik andy . cedilnik at kitware . com
19 Jun 2003 08:48:22 -0400


Hi Jan,

Cute.

I will modify it to use cmake -E remove for deleting, but it first needs
to have support for deleting directories. 

Here are some more files and directories:

SunWS_cache (Sun C++)
ii_files (Sgi)

			Andy

On Thu, 2003-06-19 at 07:12, Jan Woetzel wrote:
> Cody Batt wrote:
> 
> > I want to be able to tell cmake to remove all of the generated 
> > makefiles/projects, *.cmake, cmake.* and CMakeTmp etc.  ...
> 
> As a quick workaround I added a target "distclean" (under Linux).
> 
> The attached file "TargetDistclean.cmake" is adding a manually cleaning
> target.
> To keep teh projects CMakeLists.txt clean it is placed in cmakes Modules
> directory and included with
> 
> # --- custom targets: ---
> INCLUDE( ${CMAKE_ROOT}/Modules/TargetDistclean.cmake OPTIONAL)
> 
> 
> Best regards,
> Jan.