Considering a C++ project with an include
folder inside which the source code of several repositories is placed, how could I simplify their inclusion in the main file?
I tried something like this:
// config.h
#define SOMEPROJ_SRC_PATH "include/someproj/src/"
#define EXPAND_PATH(root, filepath) #root #filepath
//main.cpp
#include EXPAND_PATH(SOMEPROJ_SRC_PATH, "folder/header.h")
But it seems to not work properly.
So, what should I modify in these directives to make them work properly?