xdn
4th February 2013, 13:24
Hi,
I would like to set up a project that uses Qt Mobility when it's available but still works when it's not.
How would I set up my .pro file for this (qmake should run fine even if Mobility cannot be found)?
Are there any switches defined that I can use in the code to check for this, e.g. something like:
#ifdef HAVE_QTMOBILITY ....
If not, can I somehow define those switches in my pro file so they get included in the code (I know cmake can do this).
I would like to set up a project that uses Qt Mobility when it's available but still works when it's not.
How would I set up my .pro file for this (qmake should run fine even if Mobility cannot be found)?
Are there any switches defined that I can use in the code to check for this, e.g. something like:
#ifdef HAVE_QTMOBILITY ....
If not, can I somehow define those switches in my pro file so they get included in the code (I know cmake can do this).