I'm using Xcode (with C++) and my project layout (in the file system, not in Xcode) looks like this:
SubfolderA
-file_A_1, file_A_2
SubfolderB
-file_B_1, file_B_2
Right now I've set up this structure in Xcode via groups. And so, when I want to include file_A_2 in file_B_1, I write #include "file_A_2"
in file_B_1.
Is there some way to make an inclusion look like #include "/SubfolderA/file_A_2"
, so that I can easily see to what directory/subfolder an included file belongs?
Surprisingly, in Xcode's Build Settings
I've added to User Header Search Paths
non-recursive path to my project. This solved my problem.