So let's say I have bunch of header files, currently they are under:
aa/bb/cc/MyHeader1.h
aa/bb/cc/MyHeader2.h
aa/bb/cc/MyHeader3.h
To use these header files, I do:
#include "aa/bb/cc/MyHeader1.h"
#include "aa/bb/cc/MyHeader2.h"
#include "aa/bb/cc/MyHeader2.h"
But in future these header files might be moved to:
xx/yy/zz/MyHeader1.h
xx/yy/zz/MyHeader2.h
xx/yy/zz/MyHeader3.h
Is there a way to not hardcode "aa/bb/cc" portion? Can I define some kind of global macro to be included by the client code so when the header files are moved, I only need to change one place and be done with it? Sth like this(obviously following code doesn't work):
#define LIB_INC "aa/bb/cc"
#include "LIB_INC/MyHeader1.h"
Also, I'd like to avoid using -I at compile time, taking out the aa/bb/cc from the include is not an option to me.