Cross-platform / machine way to determine qmake build configuration

We use qmake (with Qt Creator) to create our C ++ application. Now we want to have several build configurations that are platform / machine independent.

The assembly configuration is added to the mypro.pro.user file. We want the configurations to be available on all platforms / machines (through the addition to VCS). Adding a pro.user file to VCS is not an option. Is there any other way to add project configuration to the project?

+4
source share
1 answer

You can add the configuration to the * .pro file:

 myconfig1 { #yourconfig1 } myconfig2 { #yourconfig2 } 

And on the qmake command line add:

CONFIG + = myconfig1

+1
source

Source: https://habr.com/ru/post/1489686/


All Articles