I would like to know if there is an available option to generate cpp code where the path of the include preprocessor directive has no directory base.
Probably with an example I could clarify my question.
My project has the following structure:
- Code: Select all
myproject/
\__ inc/ (<== don't want to have this inc/ subdirectory on the path of each header file included)
| \__ ns/
| \__ A.h
| \__ B.h
\__ src/
\__ ns/
\__ A.cpp
\__ B.cpp
Where A and B are classes inside a ns namespace.
I want to have the following path in the include directive of the generated A.cpp file
A.cpp file
- Code: Select all
...
#include "ns/A.h"
...
but I have
A.cpp file
- Code: Select all
...
#include "inc/ns/A.h"
...
if a use the "with root relative path" option in the #include combobox option of the C++[1] tab of the Generation settings dialog
or
A.cpp file
- Code: Select all
...
#include "../inc/ns/A.h"
...
if a use the "with relative path" option in the #include combobox option of the C++[1] tab of the Generation settings dialog.
Of course, the generation directories for the namespace for the headers/sources are inc/ns/ and src/ns/ respectively, in order to generate generate the code in the correct place.
Is it possible?
I know that if I generate both source and header files on the same directory I could have the desired effect, but I want to maintain separate directories for the header and source files.
Thanks in advance.
Regards,
--
Hernan