<br><br><div class="gmail_quote">2011/6/26 David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
In your top level CMakeLists.txt:<div><br></div><div>add_subdirectory(B)</div><div>add_subdirectory(A)</div><div>add_subdirectory(C)<br><br></div><div>A &amp; C must come after B since they both depend on B.</div><div><br>

</div><div>Does that help?</div><div><br></div></blockquote><div><br></div><div>Thanks for your answer. It don&#39;t seem so, but let me explain you the full context:</div><div><br></div><div>in the root directory I have </div>
<div><br></div><div>add_subdirectory( tools )</div><div><br></div><div><br></div><div>in the tools directory i have</div><div><br></div><div>add_subdirectory(B)</div><div>add_subdirectory(A)</div><div><br></div><div>I suppose I already thought that there was some kind of order in dependency declaration, so it looks like the same you tell me, but to be complete:</div>
<div><br></div><div>In directory A I have the CMakeLists.txt file to define the executable A, no add_subdirectory().</div><div>In directory B I have the CMakeLists.txt file to define the library B, with </div><div><br></div>
<div>add_subdirectory(C)</div><div><br></div><div>So it seems that your suggestion don&#39;t work but the difference remains in the tree structure so I&#39;m not sure what is impacted.</div><div>Maybe I did something wrong somewhere else.</div>
<div><br></div><div>The full repostory is up to date now there:  <a href="http://code.google.com/p/art-of-sequence/source/browse/">http://code.google.com/p/art-of-sequence/source/browse/</a></div><div>In tools directory, project A is aosdesigner, project B is aoslcpp, project C is the test project under aoslcpp.</div>
<div><br></div><div>I feel really dumb, I&#39;m sure it&#39;s obvious but can&#39;t find why it don&#39;t work with aosdesigner project that now requires aoslcpp....</div><div><br></div><div>Klaim - Joël Lamotte</div></div>