[Interest] Defining a string in qmake command line

Soroush Rabiei soroush.rabiei at gmail.com
Thu Jan 23 17:37:40 CET 2014


I need to pass a string as a definition to my source code which is a base64
encoded string (so may contain / and "). I'm using qmake and g++. I've
tried so many combinations, but neither works:

qmake DEFINES+=SERIAL=\\\"f9a/z\\\"
qmake DEFINES+=SERIAL=\"f9a/z\"
qmake DEFINES+="SERIAL=\\"f9a/z\\\""

G++ should get the serial like this:

g++ -DSERIAL=\"f9a/z\"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140123/221bff70/attachment.html>


More information about the Interest mailing list