From Jean-Sebastien Guay, "I added a simple setting in OSG's CMakeLists.txt to be able to disable building anything related to Qt. It just skips the FindPackage(...) for Qt3 and Qt4, so since they are not found nothing related to Qt will be generated by CMake. The default is to build the Qt related stuff, so current behavior is unchanged."

This commit is contained in:
Robert Osfield 2011-09-13 09:53:34 +00:00
parent 698a284da8
commit c35fdf7333

View File

@ -479,7 +479,9 @@ ENDIF()
# Include macro utilities here # Include macro utilities here
INCLUDE(OsgMacroUtils) INCLUDE(OsgMacroUtils)
IF(NOT ANDROID) OPTION(OSG_USE_QT "Enable to use Qt (build Qt-dependent libraries, plugins and examples)" ON)
IF(OSG_USE_QT AND NOT ANDROID)
# To select a specific version of QT define DESIRED_QT_VERSION # To select a specific version of QT define DESIRED_QT_VERSION
# via cmake -DDESIRED_QT_VERSION=4 # via cmake -DDESIRED_QT_VERSION=4
IF (DESIRED_QT_VERSION) IF (DESIRED_QT_VERSION)
@ -499,7 +501,8 @@ IF(NOT ANDROID)
ENDIF() ENDIF()
ENDIF() ENDIF()
ENDIF(NOT ANDROID) ENDIF()
#optional example related dependencies #optional example related dependencies
IF (BUILD_OSG_EXAMPLES AND NOT ANDROID) IF (BUILD_OSG_EXAMPLES AND NOT ANDROID)