I'm writing a program in c++, and this program has two parts, say part A and part B. These parts are in different directories. The codes in B use some classes in A. A's directory name is inconsistent, so whenever the directory has changed, I have to reset the included classes in B. What is the best idea to reduce the number of resets in part B?
For example,
Class One is in A.
/* some codes here */
class One{
/* definitions */
}
Classes Two and Three are in B
#include <path-to-class-One/One.hpp>
/* some codes here */
class Two{
/* definitions */
}
#include <path-to-class-One/One.hpp>
/* some codes here */
class Three{
/* definitions */
}
If <path-to-class-One>
changes, I must change the path in classes Two and Three. I want to reduce these changes or, if possible, reduce it to ZERO times!