[Development] adding a custom entry to qmake's QT (or CONFIG?) commands
René J. V. Bertin
rjvbertin at gmail.com
Tue Oct 13 22:22:41 CEST 2015
Oswald Buddenhagen wrote:
> src/corelib/corelib.pro:
>
> ...
> MODULE_CONFIG += qtcore_insanity
I must have done something wrong, because this addition gave me a QtCore with
the additional module included. It's not supposed to be added to Qt libraries.
> user_project.pro:
>
> ...
> CONFIG += qtcore_be_insane
This seems to work, even without the change to corelib.pro above. I'd have
preferred to link in a binary object rather than an additional source file, but
the end result should be the same.
Now, to figure out if I need to add a corresponding change to some CMake file to
make the CONFIG option available via CMake too (if, and how).
Thanks!
R.
More information about the Development
mailing list