<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">er..<br>Here's the directory structure I'm working with :<br>Alice<br> + Steve<br>
+ steve.cpp<br> + steve.h<br> + Bob<br> + bob.cpp<br> + bob.h<br>
<br></blockquote></div><br>The CMakeLists.txt file is in the Bob
folder. I'm trying to include the files from the Steve folder in my
final build solution. Doing a include_directories(../Steve) did not
solve my problem.<br>
Any advice?<br><br>Thanks,<br><font color="#888888">Vinay </font><br><br><div class="gmail_quote">On Thu, Aug 4, 2011 at 5:00 PM, j s <span dir="ltr"><<a href="mailto:j.s4403@gmail.com">j.s4403@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Angle brackets <> are for system files, use quotes instead.<br>
<div class="im"><br>
include_directories( ../peer )<br>
#include "peer.h"<br>
<br>
</div>Regards,<br>
<br>
Juan<br>
<div><div></div><div class="h5"><br>
On Thu, Aug 4, 2011 at 6:52 PM, J Decker <<a href="mailto:d3ck0r@gmail.com">d3ck0r@gmail.com</a>> wrote:<br>
> #include "../peer/peer.h" ?<br>
><br>
> include_directories( ../peer )<br>
> #include <peer.h><br>
><br>
><br>
> On Thu, Aug 4, 2011 at 4:48 PM, Vinay Raj Hampapur<br>
> <<a href="mailto:vinayraj.hampapur@gmail.com">vinayraj.hampapur@gmail.com</a>> wrote:<br>
>> Hello,<br>
>> I'm new to CMake and am trying to include files present in a<br>
>> directory which is a sibling to my own. I want to acheive this by accessing<br>
>> the parent directory and then moving into the other child directory.<br>
>> Any help in this regard is greatly appreciated.<br>
>><br>
>> Thanks,<br>
>> Vinay<br>
>><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<br>
>> <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:<br>
>> <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>
>><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>
><br>
</div></div></blockquote></div><br>