diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index a984d7f2e..bbb618c7d 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -59,7 +59,6 @@ IF(DYNAMIC_OPENSCENEGRAPH) ADD_SUBDIRECTORY(osglogo) ADD_SUBDIRECTORY(osgmanipulator) ADD_SUBDIRECTORY(osgmemorytest) - ADD_SUBDIRECTORY(osgmotionblur) ADD_SUBDIRECTORY(osgmovie) ADD_SUBDIRECTORY(osgmultiplerendertargets) ADD_SUBDIRECTORY(osgmultitexture) @@ -81,7 +80,6 @@ IF(DYNAMIC_OPENSCENEGRAPH) ADD_SUBDIRECTORY(osgreflect) ADD_SUBDIRECTORY(osgrobot) ADD_SUBDIRECTORY(osgscalarbar) - ADD_SUBDIRECTORY(osgscreencapture) ADD_SUBDIRECTORY(osgscribe) ADD_SUBDIRECTORY(osgsequence) ADD_SUBDIRECTORY(osgshaders) @@ -140,6 +138,11 @@ IF(DYNAMIC_OPENSCENEGRAPH) ADD_SUBDIRECTORY(osgwidgettable) ADD_SUBDIRECTORY(osgwidgetwindow) +IF(NOT OSG_GLES2_AVAILABLE AND NOT OSG_GLES2_AVAILABLE) + ADD_SUBDIRECTORY(osgscreencapture) + ADD_SUBDIRECTORY(osgmotionblur) +ENDIF() + IF(OSG_GLU_AVAILABLE) ADD_SUBDIRECTORY(osgphotoalbum) ADD_SUBDIRECTORY(osgtessellate)