Re: [Interest] Detecting Qt version in cmake

2013-09-05 Thread Joseph W. Joshua
> if(QT_VERSION_MAJOR EQUAL 4) > # Qt4 code > endif() > Thanks, guys. Let me try this and see. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Detecting Qt version in cmake

2013-09-05 Thread Stephen Kelly
Joseph W. Joshua wrote: > Hi all, > > When using cmake, how can one detect whether the Qt version in use is > greater that Qt4? In qmake, for example, I can determine whether the Qt > version is greater than Qt4 by using : > > greaterThan(QT_MAJOR_VERSION, 4)xxx > > Anyone know how to do this i

Re: [Interest] Detecting Qt version in cmake

2013-09-05 Thread Andreas Pakulat
Hi, On Thu, Sep 5, 2013 at 11:30 AM, Joseph W. Joshua wrote: > Hi all, > > When using cmake, how can one detect whether the Qt version in use is > greater that Qt4? In qmake, for example, I can determine whether the Qt > version is greater than Qt4 by using : > > greaterThan(QT_MAJOR_VERSION, 4)x

[Interest] Detecting Qt version in cmake

2013-09-05 Thread Joseph W. Joshua
Hi all, When using cmake, how can one detect whether the Qt version in use is greater that Qt4? In qmake, for example, I can determine whether the Qt version is greater than Qt4 by using : greaterThan(QT_MAJOR_VERSION, 4)xxx Anyone know how to do this in cmake?