<div class="gmail_quote">2011/7/13 Andreas Pokorny <span dir="ltr">&lt;<a href="mailto:andreas.pokorny@gmail.com">andreas.pokorny@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
2011/7/13 Daniel Pfeifer &lt;<a href="mailto:purplekarrot@gmail.com">purplekarrot@gmail.com</a>&gt;:<br>
<div class="im">&gt; 2011/7/13 Andreas Pokorny &lt;<a href="mailto:andreas.pokorny@gmail.com">andreas.pokorny@gmail.com</a>&gt;<br>
</div>&gt;&gt; [...]<br>
<div class="im">&gt;&gt; add_library(foo ....)<br>
&gt;&gt; target_include_paths(foo include/foo )<br>
&gt;&gt; target_include_targets(foo bar)<br>
&gt;<br>
&gt; target_include_targets would not even be required, target_link_libraries<br>
&gt; could handle that. Whenever a target is linked to a library, it also should<br>
&gt; use the appropriate include directories.<br>
<br>
</div>So you mean relying on the status of the assembled &quot;include_directories&quot;.<br>
Not sure if you want that behavior, since include_directories  just adds<br>
directories while descending the directory tree.<br></blockquote><div><br>I meant relying on target_include_paths.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

&gt;<br>
&gt;&gt; [...]<br>
<div class="im">&gt;&gt;<br>
&gt;&gt; The existing include_directories command could &quot;call&quot;<br>
&gt;&gt; target_include_paths(..) internally<br>
&gt;&gt; for all targets defined afterwards..<br>
&gt;<br>
&gt; This works iff there is a 1:1 relationship between targets and directories.<br>
&gt; Boost also has components that provide multiple libraries. And it also has<br>
&gt; (quite a lot) of header-only libraries, these are components that provide no<br>
&gt; library target at all.<br>
<br>
</div>I admit that a a no-op or dummy target is missing for header only<br>
libraries. But<br>
I do not get the part with the 1:1 relationship? Could you elaborate...<br></blockquote><div><br>I misread what the include_directories command would do using your approach. My bad. Forget about the 1:1 relationship.<br>
</div><div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Nonetheless I believe that your approach allows interesting uses for<br>
other configuration problems.<br></blockquote><div><br>Thanks!<br><br>cheers, Daniel<br></div></div><br>