[Interest] PRO File defines
Francisco Ares
frares at gmail.com
Tue Apr 26 16:34:38 CEST 2016
2016-04-25 21:13 GMT-03:00 Hamish Moffatt <hamish at risingsoftware.com>:
> On 25/04/16 20:58, Francisco Ares wrote:
>
>
> P.S.: by the way, I've been fiddling with some PRO files, and nowadays use
> a few tricks, like:
>
> using one source tree to build different executables, with different
> functionality:
>
>
>
> op1=$$find(DEFINES,"_REGISTER")
>
> count (op1,1) {
>
> include(../ModBus/QModBusMaster.pri)
>
> op2=$$find(QT, network)
>
> count(op2,0) {
>
> unix|win32: QT += network
>
> }
>
>
> Yikes. Consider "contains(QT, network)" instead of that $$find() mess. Or
> just:
>
> unix | win32: QT *= network
>
> (meaning add network if it is not already there).
>
>
> Hamish
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
Sorry, as it "just worked", I didn't try other things.
Thanks!
Francisco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160426/e6b6309a/attachment.html>
More information about the Interest
mailing list