Is it possible to create a .pro file that exposes configuration options.
Example:
Code:
qmake --enable-my-super-fantastic-features
I know I can set variables. So if the above is not possible, I can follow that path.
Printable View
Is it possible to create a .pro file that exposes configuration options.
Example:
Code:
qmake --enable-my-super-fantastic-features
I know I can set variables. So if the above is not possible, I can follow that path.
EDIT: Ehm, forget about that, you havn't asked how to deal with variables!
I never have seen such custom configuration options. At least I can't remember. But for Variables you can writethen you can check it in your pro file withCode:
qmake "DEFINES += MYFEATURE"
and you can use it right in your filesCode:
contains( DEFINES, MYFEATURE ) {}
Code:
#ifdef MYFEATURE /*...*/ #endif
Yes, I think I'll follow that route.
Thanks.