[CMake] Eclipse

Alexander Neundorf a.neundorf-work at gmx.net
Sat Dec 29 09:33:20 EST 2007


On Friday 28 December 2007, Moe Alkhafaji wrote:
> I have another question...
>
> I did notice that eclipse 3.3 has become extremely impressive on C/C++
> development front. I am more inclined now to give it a shot to see if
> it can provide me with more than what xcode 3.0 can for C/C++
> programming. Especially since I am a Java eclipse user.
>
> Now, I know there were some work-arounds posted on the Internet to get
> eclipse to work with cmake. I would like to know if people have used
> eclipse 3.3 and have something to say about how it compares to xcode
> 3.0, and what they did to get cmake working with eclipse easier than
> other work-around methods.

If you use cmake cvs with Eclipse CDT4 and build your projects in-source, the 
eclipse project generator of cmake cvs works just fine.

If you build out-of-source, you'll have some minor issues if the build dir is 
a subdir inside the source dir. This will be fixed soon.
If you build out-of-source, and the build dir is e.g a sibling of the source 
dir, it will work without problems, but you will have to create a "source 
project" manually to use e.g. version control in Eclipse.
See http://www.cmake.org/Wiki/Eclipse_CDT4_Generator

Alex


More information about the CMake mailing list