<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div><div class="h5"><div>Yeah. Well, in that case I'd simply check for the TestB target thats defined in TestB/CMakeLists.txt as condition for the top-levels add_subdirectory:</div>
</div></div>
<div><br></div><div>if(NOT TARGET TestB) </div><div> add_subdirectory(TestB)</div><div>endif()</div><div><br></div><div>That should work.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Andreas</div>
</font></span></div></blockquote><div><br></div>Awesome, that seems to do the trick. Thanks!<br clear="all"><br>David </div>