Thanks Miguel - that clears up the differences I'm seeing on the two projects. One has a number of project calls init and the other only had a single one at the top level. When I add project calls to the nested directories they come out to the top level of the eclipse project. Will the root always be left in the eclipse project then if I have a project() call there? <br>
<br>-Neal<br><br><div class="gmail_quote">On Fri, Nov 7, 2008 at 12:31 PM, Miguel A. Figueroa-Villanueva <span dir="ltr"><<a href="mailto:miguelf@ieee.org">miguelf@ieee.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Fri, Nov 7, 2008 at 4:11 PM, Neal Meyer wrote:<br>
> On Friday 07 November 2008, Neal Meyer wrote:<br>
>> I've tried the existing generator in cmake on the Mac on my existing<br>
>> project but it generated a crazy MakeFile project that builds, but is<br>
>> really unorganized and doesn't really help any. I tried using the CMake<br>
>> project and discovered that the build directory structure I was using<br>
>> appears to be most of my problem. I had created a directory called build<br>
>> under the root of the cmake project then ran cmake with the working<br>
>> directory set to the build folder [cmake .. -G "Eclipse CDT4 - Unix<br>
>> Makefiles"] The project in eclipse was mostly unusable because the source<br>
>> and the files were all over the place. Once I ran cmake in the source<br>
>> file. It behaved much better.<br>
><br>
> Please read that wiki page, it documents all the issues Eclipse has with<br>
> out-of-source builds. If there is something more, please let us know.<br>
> <a href="http://www.cmake.org/Wiki/Eclipse_CDT4_Generator" target="_blank">http://www.cmake.org/Wiki/Eclipse_CDT4_Generator</a><br>
</div><div class="Ih2E3d">> Thanks Alex. I'm playing with the generator on Windows and Mac, and now<br>
> that I understand the Eclipse limitation with the linked resource directory<br>
> it makes it clearer. On my windows project I'm getting several linked<br>
> directories in the main project that seems like everything that has an<br>
> add_subdirectory in the root CMakeLists.txt file, but on my Mac project I'm<br>
> just getting a single linked resource for the root of the entire source<br>
> tree. Is that expected? Both are using out of source build directories.<br>
<br>
</div>Hello Neal,<br>
<br>
Well, there is no intended difference between Mac and Windows. The<br>
linked resources are created for every "project()" call; not for the<br>
add_subdirectory.<br>
<br>
I'll appreciate your testing to refine the generator to work<br>
out-of-the-box in the Mac.<br>
<font color="#888888"><br>
--Miguel<br>
</font></blockquote></div><br>