the osgsimpleviewerQt4 example in my Visual studio solutions... After looking into it it seems that you cannot have both Qt3 and Qt4 enabled. After modifying the root CMakeLists.txt to use : FIND_PACKAGE(Qt) which should ask you to choose betwwen Qt3 and Qt4 if you have both instead of : FIND_PACKAGE(Qt3) FIND_PACKAGE(Qt4) I had the project generated. But then due to the way CMake handles Qt4 I had to modify osgsimpleviewerQt4's CMakeLists.txt to have the binary link with QtOpengl4. "
13 lines
264 B
CMake
13 lines
264 B
CMake
#configure what we need from Qt4
|
|
SET(QT_USE_QTOPENGL yes)
|
|
INCLUDE(UseQt4)
|
|
|
|
SET(TARGET_SRC osgsimpleviewerQT4.cpp )
|
|
|
|
SET(TARGET_EXTERNAL_LIBRARIES ${QT_LIBRARIES} )
|
|
|
|
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR} )
|
|
|
|
#### end var setup ###
|
|
SETUP_EXAMPLE(osgsimpleviewerQT4)
|