<div>Hi Nicolas,<br></div><div><br></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;">
Hi,<br>
<br>
I am trying to write a basic CMake configuration.<br>
<br>
2 questions:<br>
* I find `mkdir build; cd build; cmake ../; cd ../` quite<br>
annoying. Isn't there a cmake command-line option to tell where the<br>
build dir is?<br></blockquote><div><br></div><div>you could do</div><div>$ mkdir build</div><div>cmake BUILD_PATH SRC_PATH</div><div>$ cmake ./build ./ </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
* The default Makefile produces by cmake has no option to cleanup<br>
everything (Makefile, CMakeCache.txt, CMakeFiles,<br>
cmake_install.cmake). How do I remove everything produced by cmake,<br>
without doing it manually?<br></blockquote><div><br></div><div>$ cmake clean</div><div>will remove compilation objects</div><div>$ cmake distclean</div><div>remove all the generated file from cmake</div><div><br></div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
PS: Two important informations were missing for me in the cmake<br>
tutorial in the IPOL wiki:<br>
* we use add_executable() to list *all* the source for an executable<br>
* target_link_libraries() is also for libraries installed on the<br>
system<br></blockquote><div><br></div><div>I will add those information. Thanks.</div><div>But I prefer to not use installed libraries for the tutorial because, supposing installed libraries means that we are system configuration dependent.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
So far, I am disturbed by cmake hiding all the transformation path<br>
from source to executable and the notions of object file and separate<br> compilation.<br></blockquote><div><br></div><div>It's a build system so it changes a bit. The only things to understand is that configuration is handle by simple macro.</div>
<div>Each registered file in cmake will give object files so it's like classical CMAKEFILE.</div><div><br></div><div>Regards,</div><div>Pierre</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<span class="HOEnZb"><font color="#888888"><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>
</font></span><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iEYEARECAAYFAk7S/uoACgkQvviFAPpCP08UIgCdGKrmoLh2/F60Sny7ttHrn2Bv<br>
AKcAnRGWJuhNsc7+/2DYskyev9fgZZ23<br>
=MsMZ<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>