Hi!<div><br></div><div>I&#39;m currently trying to understand how to use CMake for a non-trivial setup of multiple-projects-framework. I&#39;m a beginner at CMake (as developer I mean, not as library user).</div><div>I&#39;ve read the docs and I tried to read the Ogre project CMake organization but it&#39;s a bit overkill for my project I think. Anyway, I&#39;m lost here because</div>
<div>I think I don&#39;t understand all I need to achieve what I want.</div><div><br></div><div>My project is made of several sub projects that are all in separate (mercurial) repositories. </div><div>There is one &quot;default&quot; repository that use the mercurial subrepos feature to gather everything in one big framework project.</div>
<div>You can see the repos there : <a href="http://code.google.com/p/art-of-sequence/source/browse/">http://code.google.com/p/art-of-sequence/source/browse/</a> (it&#39;s an open source project but Idon&#39;t have the website ready yet to explain the concept)</div>
<div><br></div><div>The Cmake organisation I want to setup I&#39;ve already seen somewhere else I think, but I&#39;m a bit lost with all the ways to do it and I think I&#39;ll make something very bad if I don&#39;t ask here for help here.</div>
<div>I need each project (subrepo) to be available separately and can be built giving to Cmake the paths of the project&#39;s dependencies.</div><div>And I need the default repo to provide the paths.</div><div><br></div><div>
So I have this folder organisation in the default repo (that gather all subrepos) :</div><div><br></div><div>/language                       # the intermediate language (AOSL) definition project/subrepo </div><div>/tools/                            # the folder that will contain all the tools projects/subrepos</div>
<div>/tools/aosdesigner           # a tool project/subrepo (in fact the most important) - an executable</div><div>/tools/aoslcpp                 # a tool project/subrepo that is a dependency of aosdesigner - a library (shared)</div>
<div>/players/                         # the folder that will contain all the players (AOSL interpreters) </div><div>/players/aoswebplayer     # a player project/subrepo </div><div><br></div><div>There will be additional &quot;tools&quot; and &quot;players&quot; projects, and I think I&#39;ll need another folder for &quot;exporters&quot; but that&#39;s another subject.</div>
<div><br></div><div>Here, what I&#39;m trying to do, is to have a CMakeLists.txt for each project (but &quot;/language&quot; that is not source code but xsd, xml and text).</div><div>Those projects will need the path of dependencies, like &quot;/tools/aosdesigner&quot; will require the path of &quot;/tools/aoslcpp&quot;.<br>
<br>Then I want to set the paths of each project at the root level. It would be perfect if I could symply get the name of all folders in &quot;/tools/&quot; and &quot;/players/&quot; </div><div>and simply provide them to the CMakeLists.txt of the sub projects.<br>
<br>Is there a simple example of this kind of organisation out there that I could be inspered of?</div><div>Do you have some guidance to give me to setup all this?</div><div>I tried to write this organisation but I&#39;m clueless on how to gather and provide the paths of each projects...</div>
<div><br></div><div>Once I understand how to do this I think I&#39;ll use this organisation for another big project too.<br><br></div><div>Any help would be really.....helpful :)</div><div>Thanks for reading. Tell me if I was not clear on some points.<br>
<br>Klaim</div>