Show
Ignore:
Timestamp:
11/17/09 13:55:52 (4 years ago)
Author:
robert
Message:

Added OSG_CPP_EXCEPTIONS_AVAILABLE cmake option to enable optional build of plugins and examples that required C++ exceptions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/CMakeLists.txt

    r10717 r10763  
    5959    ADD_SUBDIRECTORY(osglogo) 
    6060    ADD_SUBDIRECTORY(osgmanipulator) 
    61     ADD_SUBDIRECTORY(osgmemorytest) 
    6261    ADD_SUBDIRECTORY(osgmovie) 
    6362    ADD_SUBDIRECTORY(osgmultiplerendertargets) 
     
    108107    ADD_SUBDIRECTORY(osgtexturecompression) 
    109108    ADD_SUBDIRECTORY(osgthirdpersonview) 
    110     ADD_SUBDIRECTORY(osgunittests) 
    111109    ADD_SUBDIRECTORY(osgvertexprogram) 
    112110    ADD_SUBDIRECTORY(osgvertexattributes) 
     
    138136    ADD_SUBDIRECTORY(osgwidgetwindow) 
    139137 
    140 IF(NOT OSG_GLES1_AVAILABLE AND NOT OSG_GLES2_AVAILABLE AND NOT OSG_GL3_AVAILABLE) 
    141     ADD_SUBDIRECTORY(osgscreencapture) 
    142     ADD_SUBDIRECTORY(osgmotionblur) 
    143     ADD_SUBDIRECTORY(osgteapot) 
    144 ENDIF() 
    145  
    146 IF(OSG_GLU_AVAILABLE) 
    147     ADD_SUBDIRECTORY(osgphotoalbum) 
    148     ADD_SUBDIRECTORY(osgtessellate) 
    149 ENDIF() 
     138    IF(OSG_CPP_EXCEPTIONS_AVAILABLE) 
     139        ADD_SUBDIRECTORY(osgunittests) 
     140        ADD_SUBDIRECTORY(osgmemorytest) 
     141    ENDIF() 
     142 
     143    IF(NOT OSG_GLES1_AVAILABLE AND NOT OSG_GLES2_AVAILABLE AND NOT OSG_GL3_AVAILABLE) 
     144        ADD_SUBDIRECTORY(osgscreencapture) 
     145        ADD_SUBDIRECTORY(osgmotionblur) 
     146        ADD_SUBDIRECTORY(osgteapot) 
     147    ENDIF() 
     148 
     149    IF(OSG_GLU_AVAILABLE) 
     150        ADD_SUBDIRECTORY(osgphotoalbum) 
     151        ADD_SUBDIRECTORY(osgtessellate) 
     152    ENDIF() 
    150153 
    151154    ADD_SUBDIRECTORY(osgpdf)