From Mourad Boufarguine, "The attached CMakeLists allows building osgQt in case BUILD_OSG_EXAMPLES is set to off.
"
This commit is contained in:
parent
0f58cc2628
commit
8b486054b4
@ -369,6 +369,26 @@ FIND_PACKAGE(FFmpeg)
|
|||||||
FIND_PACKAGE(DirectShow)
|
FIND_PACKAGE(DirectShow)
|
||||||
FIND_PACKAGE(SDL)
|
FIND_PACKAGE(SDL)
|
||||||
|
|
||||||
|
# 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()
|
||||||
|
FIND_PACKAGE(Qt3)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
ELSE()
|
||||||
|
|
||||||
|
FIND_PACKAGE(Qt4)
|
||||||
|
|
||||||
|
IF (NOT QT4_FOUND)
|
||||||
|
FIND_PACKAGE(Qt3)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
#use pkg-config to find various modues
|
#use pkg-config to find various modues
|
||||||
INCLUDE(FindPkgConfig OPTIONAL)
|
INCLUDE(FindPkgConfig OPTIONAL)
|
||||||
|
|
||||||
@ -402,26 +422,6 @@ IF (BUILD_OSG_EXAMPLES)
|
|||||||
SET(wxWidgets_USE_LIBS base core gl net)
|
SET(wxWidgets_USE_LIBS base core gl net)
|
||||||
FIND_PACKAGE(wxWidgets)
|
FIND_PACKAGE(wxWidgets)
|
||||||
|
|
||||||
# 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()
|
|
||||||
FIND_PACKAGE(Qt3)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ELSE()
|
|
||||||
|
|
||||||
FIND_PACKAGE(Qt4)
|
|
||||||
|
|
||||||
IF (NOT QT4_FOUND)
|
|
||||||
FIND_PACKAGE(Qt3)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
ENDIF(BUILD_OSG_EXAMPLES)
|
ENDIF(BUILD_OSG_EXAMPLES)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user