[CMake] Eclipse CDT and CMake

Neal Meyer nmeyer at dottedzebra.com
Fri Nov 7 15:11:12 EST 2008


Thanks Alex.  I'm playing with the generator on Windows and Mac, and now
that I understand the Eclipse limitation with the linked resource directory
it makes it clearer.  On my windows project I'm getting several linked
directories in the main project that seems like everything that has an
add_subdirectory in the root CMakeLists.txt file, but on my Mac project I'm
just getting a single linked resource for the root of the entire source
tree.  Is that expected?  Both are using out of source build directories.

-Neal

On Friday 07 November 2008, Neal Meyer wrote:
> I've tried the existing generator in cmake on the Mac on my existing
> project but it generated a crazy MakeFile project that builds, but is
> really unorganized and doesn't really help any.  I tried using the CMake
> project and discovered that the build directory structure I was using
> appears to be most of my problem.  I had created a directory called build
> under the root of the cmake project then ran cmake with the working
> directory set to the build folder  [cmake .. -G "Eclipse CDT4 - Unix
> Makefiles"] The project in eclipse was mostly unusable because the source
> and the files were all over the place.  Once I ran cmake in the source
> file.  It behaved much better.

Please read that wiki page, it documents all the issues Eclipse has with
out-of-source builds. If there is something more, please let us know.
http://www.cmake.org/Wiki/Eclipse_CDT4_Generator

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081107/ca909170/attachment.htm>


More information about the CMake mailing list