[CMake] Accessing the parent directory of current directory

j s j.s4403 at gmail.com
Thu Aug 4 20:00:48 EDT 2011


Angle brackets <> are for system files, use quotes instead.

include_directories( ../peer )
#include "peer.h"

Regards,

Juan

On Thu, Aug 4, 2011 at 6:52 PM, J Decker <d3ck0r at gmail.com> wrote:
> #include "../peer/peer.h" ?
>
> include_directories( ../peer )
> #include <peer.h>
>
>
> On Thu, Aug 4, 2011 at 4:48 PM, Vinay Raj Hampapur
> <vinayraj.hampapur at gmail.com> wrote:
>> Hello,
>>            I'm new to CMake and am trying to include files present in a
>> directory which is a sibling to my own. I want to acheive this by accessing
>> the parent directory and then moving into the other child directory.
>> Any help in this regard is greatly appreciated.
>>
>> Thanks,
>> Vinay
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list