Re: [CMake] Dependency on library in a separate branch

2011-06-26 Thread Michael Hertling
On 06/27/2011 12:43 AM, Klaim - Joël Lamotte wrote: > 2011/6/26 David Cole > >> In your top level CMakeLists.txt: >> >> add_subdirectory(B) >> add_subdirectory(A) >> add_subdirectory(C) >> >> A & C must come after B since they both depend on B. >> >> Does that help? >> >> > Thanks for your answer

Re: [CMake] Dependency on library in a separate branch

2011-06-26 Thread Klaim - Joël Lamotte
2011/6/27 Klaim - Joël Lamotte > > The full repostory is up to date now there: > http://code.google.com/p/art-of-sequence/source/browse/ > In tools directory, project A is aosdesigner, project B is aoslcpp, project > C is the test project under aoslcpp. > > In case it helps, what I find strange i

Re: [CMake] Dependency on library in a separate branch

2011-06-26 Thread Klaim - Joël Lamotte
2011/6/26 David Cole > In your top level CMakeLists.txt: > > add_subdirectory(B) > add_subdirectory(A) > add_subdirectory(C) > > A & C must come after B since they both depend on B. > > Does that help? > > Thanks for your answer. It don't seem so, but let me explain you the full context: in the

Re: [CMake] Dependency on library in a separate branch

2011-06-26 Thread David Cole
In your top level CMakeLists.txt: add_subdirectory(B) add_subdirectory(A) add_subdirectory(C) A & C must come after B since they both depend on B. Does that help? Hope so, David 2011/6/26 Klaim - Joël Lamotte > Hi, > > I'm having trouble understanding how I should solve this case correctly

[CMake] Dependency on library in a separate branch

2011-06-26 Thread Klaim - Joël Lamotte
Hi, I'm having trouble understanding how I should solve this case correctly in CMake : I want my project A to include+link my project B. I already made it with project C but it don't work with A. I think the problems comes from the directory structure : /myrepo/tools/A (exe/Qt) /myrepo/tools/B (