[CMake] Best practices when using CMake 2.6 and Eclipse CDT 6.0

Eric Noulard eric.noulard at gmail.com
Wed Oct 7 02:33:39 EDT 2009


2009/10/7 Romain CHANU <romainchanu at gmail.com>:
> Yes I agree with you. It would be nice to hide these CMake generated files
> (except those that are generated by your CMakeLists.txt and used for
> compilation purpose, e.g. files generated by external command like
> CodeSynthesis XSD).
> One more thing, about the version control integration (SVN) in Eclipse using
> an out-of-source build (cf .
> http://www.cmake.org/Wiki/Eclipse_CDT4_Generator_Development), do I still
> need to create two different projects? One being my source code from my
> repository and the other one being my "build" directory?
> Is there any fix regarding this issue in the incoming 2.8 version? Or any
> existing work-around?

As far as I remember when I did look into the problem,
the version control integration problem for out-of-source build is an
**ECLIPSE** problem
which cannot be solved on the CMake side unless you break the out of
sorce rule and generate
files in the source...
see
http://www.cmake.org/Wiki/Eclipse_CDT4_Generator_Development#Discussion_about_Eclipse_CDT4_Generator_limitations
and reference.

You can have a single eclipse project using CMake if your go option 2 described
http://www.cmake.org/Wiki/CMake:Eclipse
however with this option you do not use eclipse generator at all...

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list