[CMake] Eclipse CDT4 CMake Generator - Pre-Alpha version

Alexander Neundorf a.neundorf-work at gmx.net
Wed Aug 1 08:46:28 EDT 2007


On Tuesday 31 July 2007 17:09, Miguel A. Figueroa-Villanueva wrote:
> Hello Mike,
...
> So, to work my way around this CDT limitation what I did was that, for
> each project, I create a linked resource in the .project file. So,
> that the following CMake structure:
>
> PROJECT(foo)
> sub1/PROJECT(P1)
> sub2/PROJECT(P2)
>
> produces the following in the .project:
>
> ...
>         <linkedResources>
>                 <link>
>                         <name>P1</name>
>                         <type>2</type>
>                         <location>D:/path/to/P1</location>
>                         <name>P2</name>
>                         <type>2</type>
>                         <location>D:/path/to/P2</location>
>                 </link>
>         </linkedResources>
> ...
>
> and I also put the following in the .cproject:
>
> ...
> <pathentry kind="src" path="P1"/>
> <pathentry kind="src" path="P2"/>
> ...
>
> It's not as good as encapsulating each cmake project in an eclipse
> project, but that is just not supported right now in eclipse cdt as
> you stated.

So what does this do then ?
If you don't see a way then maybe you can just ignore the sub projects.
All targets which are in the subprojects P1 and P2 are also in the top level 
project foo.

Bye
Alex


More information about the CMake mailing list