<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
It's a bit clearer to me now ;-)<br>
Reading between the lines I get the feeling that you're probably better<br>
off using just a single project anyway.<br>
A developer doesn't need to continuously update the whole project when<br>
working on his subproject. Building the whole thing once in his working<br>
copy should suffice.<br>
<br></blockquote><div>Most of those projects (and future related projects) are not interdependent. I had a repository with everything inside before (using MSVC10 projects files) but it don't suit the developpement as each project really need a separate repository with separate history and separate teams working on it. I know I could use branches but that would make things harder when managing the different projects separately.</div>
<div><br></div><div>They have to be separate. That's not a question to me anymore.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Personally, I have not yet gained any experience with<br>
EXTERNAL_PROJECT(), so I cannot really help you there. If your<br>
subsystems are *really* stand-alone pieces of software, then you should<br>
create different CMake projects for them. However, like I said, I get<br>
the feeling that that's not the case in your situation.<br></blockquote><div><br></div><div>It is this very case. I need them to be separate projects, sometime linked because sometime you need some dependencies and maybe those dependencies are in the same "family of projects" or something. Those dependencies might be from outside too, but those projects have to be isolated.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
You might consider to use multiple PROJECT() commands inside your<br>
source tree. It will make your life slightly easier when you later<br>
decide you do want to split things up.<br></blockquote><div><br></div><div>That's already what I do. Well that's what's i'm trying but until now I can't find a way to say to CMake where are the other projects. I think I'm misusing EXTERNAL_PROJECT() but I'm not sure how.</div>
<div>I'll get back on this issue in the week, see if I can make EXTERNAL_PROJECT() work as I need. I really think I don't have all the pieces of the puzzle. I'm reading the other thread about how to make libraries works correctly with CMake and I think I don't know a lot about what's really required. </div>
<div><br></div><div>Anyway, thanks for your help.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
>>> On 3-12-2010 at 13:13, in message<br>
<<a href="mailto:AANLkTimfWeyEJP%2BMAQKZcg-7a92beBvxhGO0BXRLjP9x@mail.gmail.com">AANLkTimfWeyEJP+MAQKZcg-7a92beBvxhGO0BXRLjP9x@mail.gmail.com</a>>, Klaim<br>
<div><div></div><div class="h5"><<a href="mailto:mjklaim@gmail.com">mjklaim@gmail.com</a>> wrote:<br>
> Thanks for pointing EXTERNAL_PROJECT , I've looked at it but can't<br>
> understand how to get the path from outside.<br>
> I'll try again see if I missed something about this feature and get<br>
back to<br>
> you.<br>
><br>
> The projects are almost all independent and I need to allow working<br>
with a<br>
> clone of one subproject without retrieving everything, just it<br>
dependencies.<br>
><br>
> I'll try to be more clear :<br>
> - there is a common language used to describe a "Sequence" (it's<br>
not<br>
> important so just understand that the important projects in the<br>
framework<br>
> will require this)<br>
> - there are tools, all made to manipulate the sequences, so each<br>
project is<br>
> independant (separate repo) but some projects need to use other<br>
projects, so<br>
> we need to provide their path in their Cmake<br>
> - there are players that are like tools but are just interpreter<br>
projects -<br>
> anyway they are as indpendant or dependant as tools<br>
projects/subrepos<br>
> - now I have central repository ("default") that is just meant to<br>
gather<br>
> everything together; That's for people wanting everything but they<br>
are few.<br>
> Most subproject developers will just get their dependencies and work<br>
from<br>
> their, without updating the dependencies while developping. If you<br>
get the<br>
> "default" repo, you have synchronized repos togethere (read: we use<br>
specific<br>
> tags for each subrespo). So the default repository is mainly for the<br>
> developers needing to touch everything. Like me.<br>
><br>
> Is it more clear?<br>
><br>
> On Fri, Dec 3, 2010 at 11:16, Marcel Loose <<a href="mailto:loose@astron.nl">loose@astron.nl</a>> wrote:<br>
><br>
>> >>> On 2-12-2010 at 16:12, in message<br>
>><br>
><br>
</div></div><AANLkTimJU5WAv=<a href="mailto:EKxnbmkpLnL7dN_c%2BXsSgKOEFm5Le6@mail.gmail.com">EKxnbmkpLnL7dN_c+XsSgKOEFm5Le6@mail.gmail.com</a><EKxnbmkpLnL7dN_c%<br>
> <a href="mailto:2BXsSgKOEFm5Le6@mail.gmail.com">2BXsSgKOEFm5Le6@mail.gmail.com</a>>>,<br>
<div><div></div><div class="h5">>> Klaim<br>
>> <<a href="mailto:mjklaim@gmail.com">mjklaim@gmail.com</a>> wrote:<br>
>> > Hi!<br>
>> ><br>
>> > I'm currently trying to understand how to use CMake for a<br>
non-trivial<br>
>> setup<br>
>> > of multiple-projects-framework. I'm a beginner at CMake (as<br>
developer<br>
>> I<br>
>> > mean, not as library user).<br>
>> > I've read the docs and I tried to read the Ogre project CMake<br>
>> organization<br>
>> > but it's a bit overkill for my project I think. Anyway, I'm lost<br>
>> here<br>
>> > because<br>
>> > I think I don't understand all I need to achieve what I want.<br>
>> ><br>
>> > My project is made of several sub projects that are all in<br>
separate<br>
>> > (mercurial) repositories.<br>
>> > There is one "default" repository that use the mercurial subrepos<br>
>> feature to<br>
>> > gather everything in one big framework project.<br>
>> > You can see the repos there :<br>
>> > <a href="http://code.google.com/p/art-of-sequence/source/browse/" target="_blank">http://code.google.com/p/art-of-sequence/source/browse/</a> (it's an<br>
open<br>
>> source<br>
>> > project but Idon't have the website ready yet to explain the<br>
>> concept)<br>
>> ><br>
>> > The Cmake organisation I want to setup I've already seen<br>
somewhere<br>
>> else I<br>
>> > think, but I'm a bit lost with all the ways to do it and I think<br>
I'll<br>
>> make<br>
>> > something very bad if I don't ask here for help here.<br>
>> > I need each project (subrepo) to be available separately and can<br>
be<br>
>> built<br>
>> > giving to Cmake the paths of the project's dependencies.<br>
>> > And I need the default repo to provide the paths.<br>
>> ><br>
>> > So I have this folder organisation in the default repo (that<br>
gather<br>
>> all<br>
>> > subrepos) :<br>
>> ><br>
>> > /language # the intermediate language<br>
(AOSL)<br>
>> > definition project/subrepo<br>
>> > /tools/ # the folder that will contain<br>
all<br>
>> the<br>
>> > tools projects/subrepos<br>
>> > /tools/aosdesigner # a tool project/subrepo (in fact<br>
the<br>
>> most<br>
>> > important) - an executable<br>
>> > /tools/aoslcpp # a tool project/subrepo that is a<br>
>> dependency<br>
>> > of aosdesigner - a library (shared)<br>
>> > /players/ # the folder that will contain<br>
all<br>
>> the<br>
>> > players (AOSL interpreters)<br>
>> > /players/aoswebplayer # a player project/subrepo<br>
>> ><br>
>> > There will be additional "tools" and "players" projects, and I<br>
think<br>
>> I'll<br>
>> > need another folder for "exporters" but that's another subject.<br>
>> ><br>
>> > Here, what I'm trying to do, is to have a CMakeLists.txt for each<br>
>> project<br>
>> > (but "/language" that is not source code but xsd, xml and text).<br>
>> > Those projects will need the path of dependencies, like<br>
>> "/tools/aosdesigner"<br>
>> > will require the path of "/tools/aoslcpp".<br>
>> ><br>
>> > Then I want to set the paths of each project at the root level.<br>
It<br>
>> would be<br>
>> > perfect if I could symply get the name of all folders in<br>
"/tools/"<br>
>> and<br>
>> > "/players/"<br>
>> > and simply provide them to the CMakeLists.txt of the sub<br>
projects.<br>
>> ><br>
>> > Is there a simple example of this kind of organisation out there<br>
that<br>
>> I<br>
>> > could be inspered of?<br>
>> > Do you have some guidance to give me to setup all this?<br>
>> > I tried to write this organisation but I'm clueless on how to<br>
gather<br>
>> and<br>
>> > provide the paths of each projects...<br>
>> ><br>
>> > Once I understand how to do this I think I'll use this<br>
organisation<br>
>> for<br>
>> > another big project too.<br>
>> ><br>
>> > Any help would be really.....helpful :)<br>
>> > Thanks for reading. Tell me if I was not clear on some points.<br>
>> ><br>
>> > Klaim<br>
>><br>
>> Hi Klaim,<br>
>><br>
>> It's not completely clear to me how tightly your subprojects are<br>
>> coupled.<br>
>><br>
>> I would suggest you'd create a CMake project for each of your<br>
>> subprojects and use the EXTERNAL_PROJECT feature to import the<br>
required<br>
>> subproject. UNLESS: your subprojects cannot really exist as<br>
stand-alone<br>
>> products, but are just parts of one overall project. In that case,<br>
I<br>
>> would choose to create just one CMake project.<br>
>><br>
>> HTH,<br>
>> Marcel Loose.<br>
>><br>
<br>
<br>
</div></div></blockquote></div><br>