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

Thiago Macieira thiago.macieira at intel.com
Tue Sep 2 17:33:05 CEST 2014


On Tuesday 02 September 2014 07:20:36 Bo Thorsen wrote:
> Den 01-09-2014 17:42, Igor Mironchik skrev:
> > 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...
> 
> You should put all things that are shared in the entire tree in a file
> called .qmake.conf at the top level.

That doesn't work in Qt 4. For Qt 4, the file has to be called .qmake.cache and 
it must be in the destination (build) dir.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list