Hi,

I have a project with quite a few Qt-libraries and applications, organized in a directory structure and built using a central session file:

Directory structure:

Qt Code:
  1. build/Qt/MyProject.pro
  2. libs/lib1/lib1.pro
  3. libs/lib2/lib2.pro
  4. app/app1.pro
To copy to clipboard, switch view to plain text mode 

where MyProject.pro looks like:

Qt Code:
  1. TEMPLATE = subdirs
  2. SUBDIRS = Lib1 Lib2 App1
  3. Lib1.file = ../../libs/lib1/lib1.pro
  4. Lib2.file = ../../libs/lib2/lib2.pro
  5. App1.file = ../../app/app1.pro
  6.  
  7. App1.depends = Lib1 Lib2
To copy to clipboard, switch view to plain text mode 


Now I want to use different Qt kits to test the compilation. The output directories are created like:

Qt Code:
  1. build/build-MyProject-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug
  2. build/build-MyProject-Desktop_Qt_5_12_3_MSVC2017_64bit-Debug
To copy to clipboard, switch view to plain text mode 

Question:
How can I define in my lib1.pro, lib2.pro and app1.pro files that the objects, moc, ui files etc. are all placed under the respective kit?

app/app1.pro:

Qt Code:
  1. OBJECTS_DIR = ???? -> should go to build/build-MyProject-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug/App1
  2. MOC_DIR = ???? -> should go to build/build-MyProject-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug/App1/moc
  3. UI_DIR = ???? -> should go to build/build-MyProject-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug/App1/ui
To copy to clipboard, switch view to plain text mode 

or rephrased, how do I obtain the OUT_DIR = build-MyProject-Desktop_Qt_5_15_2_MSVC2019_64bit-Debug of the sessions project inside app1.pro ?