[CMake] Eclipse CDT and CMake

Miguel A. Figueroa-Villanueva miguelf at ieee.org
Fri Nov 7 15:31:17 EST 2008


On Fri, Nov 7, 2008 at 4:11 PM, Neal Meyer wrote:
> 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
> 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.

Hello Neal,

Well, there is no intended difference between Mac and Windows. The
linked resources are created for every "project()" call; not for the
add_subdirectory.

I'll appreciate your testing to refine the generator to work
out-of-the-box in the Mac.

--Miguel


More information about the CMake mailing list