[Qt-interest] Using DEFINES for testing a condition

Chitrang Srivastava chitrang.srivastava at gmail.com
Tue Jul 13 15:04:15 CEST 2010


Hi,

In my application, I want to pass DEFINES from command line and then use it
in the pro file to test some condition.It not working.I am doing this way.
$qmake DEFINES+=TEST

in pro file
TEST{
#do some stuff
}else{
#do something
}

Any hints, how can I use DEFINES, passed from command line to qmake in pro
file ?

-Chitrang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100713/e86b1aff/attachment.html 


More information about the Qt-interest-old mailing list