I have a project with multiple sub-projects. One sub-project for executable and the rest for shared libraries. Each sub-project has its own *.pro
file.
I need to define a compiler preprocessing macro, but I don't want to repeat defining it in each *.pro
file. Is it possible to share a macro definition among multiple sub-projects?
My sample preprocessing macro:
#define PI 3.1415926
Adding to *.pro
files:
DEFINES += "PI=\"3.1415926\""