> 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
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
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
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?