Hi,

I am writing two different Qt creator plugin applications. Some of their dependencies(plugins) are common. So i am trying to switch the included plugins.

For first application I renamed qtcreator.pro to app1.pro and th second application to app2.pro.

In the first .pro file Ive added " CONFIG += BUILD_FOR_APP1 " , and for the second .pro file I ve added " CONFIG += BUILD_FOR_APP2 " on top of the pro file.

To check the configuration setting; in qtcreator.pri I wrote:

Qt Code:
  1. for(p, CONFIG) {
  2. message($${p})
  3. }
To copy to clipboard, switch view to plain text mode 

In debug output I can see that my BUILD_FOR_APPX configuration is active, no poblem. And also

Qt Code:
  1. BUILD_FOR_APPX{
  2. message(APPX Plugin activated)
  3. }
To copy to clipboard, switch view to plain text mode 

prints correctly to output pane.

But when i run the same qmake script in plugins.pro, i see that no such configuration exists; although plugins.pro includes qtcreator.pri . So i cannot select the right plugins according to the configuration.

What is the problem here. How can I make "BUILD_FOR_APPX configuration" global to all project including sub projects?

Thanks in advance,
Yigit