<div class="gmail_quote">On Sat, Apr 11, 2009 at 12:17 AM, Adrian Boeing <span dir="ltr"><<a href="mailto:aboeing@gmail.com">aboeing@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Great, thanks Philip! It would be fantastic if CMake included this<br>
feature in future.<br>
<br>
Just for clarification to make sure I haven't misunderstood, the<br>
solution Alex proposed would not do what I wanted (separate includes)<br>
because both files are in the same directory? What Alex is suggesting<br>
would work if I moved the files into separate directories?</blockquote><div><br>include_directories() is additive as you recurse into new subdirectories with add_subdirectory().<br><br>include<br> my include files are here...<br>
src<br> include_directories(../include)<br>src/foo<br> include_directories(${FOO_INCLUDE_DIRS})<br>src/bar<br><br>In the example above, src, src/foo, and src/bar will all have include in their include path.<br>Only src/foo will have the contents of FOO_INCLUDE_DIRS in it's directory.<br>
<br>Does that answer your question?<br></div></div><br>-- <br>Philip Lowman<br>