<div>I'm sorry you can't specify the output directory through the command line without a specific options of the cmake 2.8.</div><div>By default it consider the current dir as output</div><div><br></div><div>You could use the following</div>
<div><br>$ cmake -E make_directory build<br>$ cmake -E chdir build cmake ../HelloWorld<br>$ cmake --build build</div><div>$ rm -rf ./build
</div><div><br></div><div><br></div><div>=> <a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#opt:--builddir">http://www.cmake.org/cmake/help/cmake-2-8-docs.html#opt:--builddir</a></div><div><br></div><div>
Something that you could like is the graphivz export of dependencies :</div><div><br></div><div>--graphviz=[file]: Generate graphviz of dependencies.<br><br>Generate a graphviz input file that will contain all the library and executable dependencies in the project.</div>
<div><br></div><div>Regards,</div><div>Pierre</div><br><div class="gmail_quote">2011/11/28 Nicolas Limare <span dir="ltr"><<a href="mailto:nicolas.limare@cmla.ens-cachan.fr">nicolas.limare@cmla.ens-cachan.fr</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">> This should not work, see note below [1]. The intended use for cmake<br>
> is to build in a different dir than the one containing the source<br>
> code. So, lets say you have the source in ./src and you compile in<br>
> ./build. You can safely do a 'rm -fr build/*' to get rid of<br>
> everything.<br>
<br>
</div>OK for the concept of out-of-cource build, easy to cleanup with a<br>
simple rm -rf. But for such out-ou-source build, it seems that I HAVE<br>
to manually move to this build dir wth CD. The syntax provided by<br>
Pierre dows not create the cmake files in the build dir.<br>
<br>
I just want something like<br>
<br>
mkdir /path/to/build/<br>
cmake -option /path/to/build/ /path/to/src/<br>
^^^^^^^^^^^^^^^^^^^^^^<br>
`-> would create CMakeFiles, CMakeCache,<br>
etc. in /path/to/build/<br>
make -C /path/to/build/<br>
rm -rf /path/to/build<br>
<br>
So far, it seems that cmake always create the CMakeStuff in the<br>
current directory.<br>
<br>
I think my two wishes are incompatible in the cmake world:<br>
* a want a command (a make, cmake or a simple rm) to cleanup everything<br></blockquote><div>OK => since Cmake 2.8with --build option. Before you have to do</div><div>$ mkdir build</div><div>$ cd build</div><div>$ cmake ../helloWorld</div>
<div>$ make</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
* I want to manage all the build process without moving<br></blockquote><div>OK </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="HOEnZb"><div class="h5"><br>
--<br>
Nicolas LIMARE - CMLA - ENS Cachan <a href="http://www.cmla.ens-cachan.fr/~limare/" target="_blank">http://www.cmla.ens-cachan.fr/~limare/</a><br>
IPOL - image processing on line <a href="http://www.ipol.im/" target="_blank">http://www.ipol.im/</a><br>
</div></div><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iEYEARECAAYFAk7ThbYACgkQvviFAPpCP09VegCfW/tU03kTt4F7wUNxFrqg9ClI<br>
bNsAmgKnPjtpHZiVXtzWal0kK/UntwMV<br>
=DbP7<br>
-----END PGP SIGNATURE-----<br>
<br>_______________________________________________<br>
discuss mailing list<br>
<a href="mailto:discuss@list.ipol.im">discuss@list.ipol.im</a><br>
<a href="http://tools.ipol.im/mailman/listinfo/discuss" target="_blank">http://tools.ipol.im/mailman/listinfo/discuss</a><br></blockquote></div><br>