[Interest] How to define something for all sub-projects?

Thiago Macieira thiago.macieira at intel.com
Mon Sep 1 20:35:17 CEST 2014


On Monday 01 September 2014 18:42:28 Igor Mironchik wrote:
> Hi,
> 
> how to define macro in “parent” .pro file that it will take effect for all
> sub-projects?
> 
> DEFINES += SOME_MACRO
> 
> in “parent” .pro file does not take effect for sub-projects...

There's no supported feature for this. Qt has a "backdoor" into qmake that 
allows it to do exactly that, but it's different between Qt 4 and 5 and it may 
change in the future again.

The only way to do this is to include() a file in each .pro file.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list