[Cmake] using make clean

Brad King brad . king at kitware . com
Wed, 26 Nov 2003 11:53:06 -0500 (EST)


On Wed, 26 Nov 2003, David Svoboda wrote:

> Well, if I understood correctly, it is better to create i.e. the following
> directory tree:
>
> /myproject - my project direcotry
> /myproject/src - here, the source files are stored
> /myproject/src/linux-gcc3.0 - here the binaries and objs for spec.
> compiler or platform are stored
>
> And therefore the source fiels are left untouched. Object files and all
> the others are stored in anoter directory - in this case in
> "linux-gcc-3.0".

Take your current source tree "myproject", and run cmake like this:

mkdir myproject-build
cd myproject-build
cmake ../myproject
make

-Brad