<font face="verdana,sans-serif">Be sure that you have<br>  INCLUDE_DIRECTORIES( [path to Internal.h and External.h] )<br>set.<br><br>James<br><br></font><br><div style="margin: 0pt;" name="sig_ba983408e3"></div><div class="gmail_quote">

On Tue, Nov 16, 2010 at 12:24 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Ryan,<br>
<br>
The issue is that these headers are only used internally to this<br>
collection of files, so I don&#39;t want to have to include them in my<br>
code. Here is a skeleton:<br>
<br>
The files I&#39;ve been given<br>
----------<br>
External.h<br>
External.cpp<br>
Internal.h (used by External)<br>
Internal.cpp<br>
<br>
My files<br>
------------<br>
MyCode.cpp<br>
<br>
So I wanted to<br>
<br>
ADD_LIBRARY(TheLibrary External.cpp Internal.cpp)<br>
<br>
Then<br>
<br>
ADD_EXECUTABLE(MyCode MyCode.cpp)<br>
target_link_libraries(MyCode TheLibrary)<br>
<br>
where MyCode.cpp has only an #include &quot;External.h&quot;<br>
<br>
See what I mean?<br>
<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>