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

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to