[osg-submissions] Qt 3 vs 4 under linux
Robert Osfield
robert.osfield at gmail.com
Tue Oct 2 05:40:51 PDT 2007
Hi Mathieu,
I have done some experiments and come up with :
# To select a specific version of QT define DESIRED_QT_VERSION
# via cmake -DDESIRED_QT_VERSION=4
IF (DESIRED_QT_VERSION)
IF (DESIRED_QT_VERSION MATCHES 4)
FIND_PACKAGE(Qt4)
ELSE(DESIRED_QT_VERSION MATCHES 4)
FIND_PACKAGE(Qt3)
ENDIF(DESIRED_QT_VERSION MATCHES 4)
ELSE(DESIRED_QT_VERSION)
FIND_PACKAGE(Qt4)
IF (NOT QT4_FOUND)
FIND_PACKAGE(Qt3)
ENDIF(NOT QT4_FOUND)
ENDIF(DESIRED_QT_VERSION)
I've tried installing both QT3 and QT4 and got it working fine. The
only thing I found to make things tricky was that one had to remove
CMakeCache.txt each time to
prevent cached variables from causing problems.
The modified CMake file is attached. Does this work OK for you?
Robert.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20071002/04424d74/attachment-0001.txt
More information about the osg-submissions
mailing list