[Interest] passing something into subdirs qmake

Konstantin Tokarev annulen at yandex.ru
Wed Jun 5 13:31:10 CEST 2019

05.06.2019, 14:29, "Kai Köhne" <kai.koehne at qt.io>:
>> I want to invent some convenient way to switch between two variations
>  > of the same app.
> How do you plan to set these?
> If it's via command line (e.g. qmake CONFIG+= ...): This will be passed automatically to SUBDIRS projects.
> If you somehow detect it otherwise: The common pattern here is to have the switch logic in a .pri file, and include it from all .pro files needing it.

Less common pattern is using .qmake.conf in the root project directory


More information about the Interest mailing list