[Interest] Detecting Qt version in cmake

Joseph W. Joshua joshua at megvel.me.ke
Thu Sep 5 11:30:02 CEST 2013


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?



More information about the Interest mailing list