<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I'm new to the list and relatively new
to CMake. &nbsp;I'm currently in the process of attempting to migrate an
existing project to CMake (from plain Unix makefiles)</font>
<br>
<br><font size=2 face="sans-serif">The source files for each library are
in a series of subdirectories as illustrated in the simple diagrams at
the bottom of the mail.</font>
<br>
<br><font size=2 face="sans-serif">What I'm currently doing is creating
CMakeLists.txt for each individual library. &nbsp;I am also trying to represent
the inter-library dependencies by adding add_subdirectory() and add_dependencies()
to each library project (which almost all do).</font>
<br>
<br><font size=2 face="sans-serif">However, when I try to do this, it does
not work as in the case where lib3 is dependent on lib &amp; headers within
lib2. &nbsp;When I run 'cmake .' to build the files, I get a message telling
me that lib2 is not a subdirectory of lib3 and &nbsp;the makefile is not
created.</font>
<br>
<br><font size=2 face="sans-serif">Would someone be able to point me in
the right direction?</font>
<br>
<br><font size=2 face="sans-serif">Thank you,</font>
<br>
<br><font size=2 face="sans-serif">Eric</font>
<br>
<br><font size=2 face="sans-serif">The physical source tree looks like
this (limiting this to libs)</font>
<br>
<br><font size=2 face="sans-serif">Libs</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;|</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;- lib1</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;|</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;= lib2</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;|</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;_ etc..</font>
<br>
<br><font size=2 face="sans-serif">The lib hierarchy looks like this</font>
<br>
<br><font size=2 face="sans-serif">Lib1</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; |</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; Lib2</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
|</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Lib3</font>
<br>
<br><font size=2 face="sans-serif">so lib2 depends on Lib1 and Lib3 depends
on lib 2</font>
<br>
<span style="font-family:'Arial',sans-serif; font-size:8pt; color:#000000">---</span><br>
<span style="font-family:'Courier New',monospace; font-size:10pt; color:#000000">This communication may contain confidential and/or privileged information.<br>
If you are not the intended recipient (or have received this communication<br>
in error) please notify the sender immediately and destroy this<br>
communication. Any unauthorized copying, disclosure or distribution of the<br>
material in this communication is strictly forbidden.<br>
<br>
Deutsche Bank does not render legal or tax advice, and the information<br>
contained in this communication should not be regarded as such.</span>