Files
OpenSceneGraph/examples/osgsimpleviewerQT4/CMakeLists.txt
Robert Osfield 6096af0b99 From Mathieu Marache, "I tried the latest developper release 1.9.4 and found that I hadn't
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. "
2007-05-15 11:31:09 +00:00

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)