[Interest] Defining a string in qmake command line
Joerg Bornemann
joerg.bornemann at digia.com
Thu Jan 23 17:50:18 CET 2014
On 23.01.2014 17:37, Soroush Rabiei wrote:
> 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\\\"
That's the right form. If you're passing it on the command line you must
escape the sequence for your shell. Assuming that you're using e.g.
bash, the following should work:
qmake 'DEFINES+=SERIAL=\\\"f9a/z\\\"'
BR,
Joerg
More information about the Interest
mailing list