<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">INCLUDE_DIRECTORIES( ${FOO_SOURCE_DIR} )<br># "FOO" here comes from the PROJECT() line in the other CMakeLists.txt<br>
</blockquote>
<div>I don't want to add project(FOO) in my target'sCMakeLists.txt.</div>
<div>Because it is really not a real project, only a library target.</div>
<div>Does there exist other way?<br></div>
<div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div>I've seen your English improve a lot over the last half year, so I would not<br>be sorry for that :-) </div></blockquote>
<div>Thanks! :-)</div>
<div> </div></div>
<div class="gmail_quote">2012/9/7 Sascha Cunz <span dir="ltr"><<a href="mailto:sascha-ml@babbelbox.org" target="_blank">sascha-ml@babbelbox.org</a>></span><br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">If you have in one CMakeLists.txt:<br><br>PROJECT( FOO )<br>ADD_LIBRARY( fooLibrary source.cpp )<br><br>then you can simply do in another CMakeLists.txt:<br>
<br>INCLUDE_DIRECTORIES( ${FOO_SOURCE_DIR} )<br># "FOO" here comes from the PROJECT() line in the other CMakeLists.txt<br>
<div class="im"><br>> Sorry for my poor English.<br>> English is not my native language.<br><br></div>I've seen your English improve a lot over the last half year, so I would not<br>be sorry for that :-) Anyway, I'd guess it's at least about half (2/3?) the<br>
world that doesn't speak English natively.<br></blockquote></div><br><br clear="all"><br>-- <br>
<div>Best Regards</div>
<div>Yuchen</div><br>