119 lines
3.8 KiB
CMake
119 lines
3.8 KiB
CMake
PROJECT(OSG_EXAMPLES)
|
|
|
|
SET(OSGCORE_BUNDLED TRUE)
|
|
|
|
IF(NOT OSGCORE_BUNDLED)
|
|
FIND_PACKAGE(OSGCORE)
|
|
IF(OSGCORE_FOUND)
|
|
INCLUDE(${OSGCORE_USE_FILE})
|
|
ELSE(OSGCORE_FOUND)
|
|
MESSAGE(ERROR "OSGCORE neeeded but NOT FOUND")
|
|
ENDIF(OSGCORE_FOUND)
|
|
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../../Macros)
|
|
ENDIF(NOT OSGCORE_BUNDLED)
|
|
SET(OPENSCENEGRAPH_EXAMPLE_DIR ${PROJECT_SOURCE_DIR})
|
|
|
|
INCLUDE(OsgMacroUtils)
|
|
|
|
|
|
|
|
ADD_OSG_EXAMPLE( osganimate osgSim )
|
|
ADD_OSG_EXAMPLE( osgautotransform )
|
|
ADD_OSG_EXAMPLE( osgbillboard )
|
|
ADD_OSG_EXAMPLE( osgblendequation osgGA)
|
|
ADD_OSG_EXAMPLE( osgcallback )
|
|
ADD_OSG_EXAMPLE( osgcamera )
|
|
ADD_OSG_EXAMPLE( osgcatch osgParticle)
|
|
#ADD_OSG_EXAMPLE( osgcegui )
|
|
ADD_OSG_EXAMPLE( osgclip )
|
|
#to add subject to find socket#ADD_OSG_EXAMPLE( osgcluster ${OSG_SOCKET_LIBS} )
|
|
ADD_OSG_EXAMPLE( osgcopy )
|
|
ADD_OSG_EXAMPLE( osgcubemap )
|
|
ADD_OSG_EXAMPLE( osgdelaunay osgGA)
|
|
ADD_OSG_EXAMPLE( osgdepthpartition )
|
|
ADD_OSG_EXAMPLE( osgdepthshadow osgShadow)
|
|
ADD_OSG_EXAMPLE( osgdistortion )
|
|
ADD_OSG_EXAMPLE( osgfadetext osgText)
|
|
ADD_OSG_EXAMPLE( osgforest osgGA)
|
|
ADD_OSG_EXAMPLE( osgfxbrowser osgFX osgGA)
|
|
ADD_OSG_EXAMPLE( osggeodemo osgGA)
|
|
ADD_OSG_EXAMPLE( osggeometry )
|
|
#to add subject to find Glut
|
|
#ADD_OSG_EXAMPLE( osgGLUTkeyboardmouse )
|
|
#ADD_OSG_EXAMPLE( osgGLUTsimple )
|
|
ADD_OSG_EXAMPLE( osghangglide )
|
|
ADD_OSG_EXAMPLE( osghud )
|
|
ADD_OSG_EXAMPLE( osgimpostor osgSim )
|
|
ADD_OSG_EXAMPLE( osgintersection osgSim)
|
|
IF (BUILD_OSG_WRAPPERS)
|
|
ADD_OSG_EXAMPLE( osgintrospection osgIntrospection )
|
|
ENDIF(BUILD_OSG_WRAPPERS)
|
|
ADD_OSG_EXAMPLE( osgkeyboard osgFX )
|
|
ADD_OSG_EXAMPLE( osgkeyboardmouse osgFX )
|
|
ADD_OSG_EXAMPLE( osglauncher )
|
|
ADD_OSG_EXAMPLE( osglight )
|
|
ADD_OSG_EXAMPLE( osglightpoint osgSim )
|
|
ADD_OSG_EXAMPLE( osglogicop osgGA)
|
|
ADD_OSG_EXAMPLE( osglogo )
|
|
ADD_OSG_EXAMPLE( osgmanipulator osgManipulator )
|
|
ADD_OSG_EXAMPLE( osgmotionblur )
|
|
ADD_OSG_EXAMPLE( osgmovie osgGA)
|
|
ADD_OSG_EXAMPLE( osgmultiplecameras osgFX)
|
|
ADD_OSG_EXAMPLE( osgmultitexture )
|
|
ADD_OSG_EXAMPLE( osgoccluder osgGA)
|
|
ADD_OSG_EXAMPLE( osgpagedlod )
|
|
ADD_OSG_EXAMPLE( osgparametric )
|
|
ADD_OSG_EXAMPLE( osgparticle osgParticle)
|
|
ADD_OSG_EXAMPLE( osgparticleeffects osgParticle osgGA)
|
|
ADD_OSG_EXAMPLE( osgphotoalbum )
|
|
ADD_OSG_EXAMPLE( osgpick osgGA)
|
|
ADD_OSG_EXAMPLE( osgplanets osgGA)
|
|
ADD_OSG_EXAMPLE( osgpoints osgGA)
|
|
ADD_OSG_EXAMPLE( osgpointsprite )
|
|
ADD_OSG_EXAMPLE( osgprecipitation osgParticle)
|
|
ADD_OSG_EXAMPLE( osgprerender )
|
|
ADD_OSG_EXAMPLE( osgprerendercubemap )
|
|
ADD_OSG_EXAMPLE( osgreflect )
|
|
ADD_OSG_EXAMPLE( osgscalarbar osgSim )
|
|
ADD_OSG_EXAMPLE( osgscribe )
|
|
ADD_OSG_EXAMPLE( osgsequence )
|
|
ADD_OSG_EXAMPLE( osgshaders )
|
|
ADD_OSG_EXAMPLE( osgshaderterrain OpenThreads)
|
|
ADD_OSG_EXAMPLE( osgshadowtexture osgShadow)
|
|
ADD_OSG_EXAMPLE( osgshadow osgShadow)
|
|
ADD_OSG_EXAMPLE( osgshape )
|
|
ADD_OSG_EXAMPLE( osgsimple )
|
|
##################################################
|
|
#ADD_OSG_EXAMPLE( osgsimpleviewerXXX )
|
|
##################################################
|
|
ADD_OSG_EXAMPLE( osgsimplifier )
|
|
ADD_OSG_EXAMPLE( osgsimulation osgSim osgGA)
|
|
ADD_OSG_EXAMPLE( osgterrain osgTerrain)
|
|
ADD_OSG_EXAMPLE( osgslice )
|
|
ADD_OSG_EXAMPLE( osgspacewarp )
|
|
ADD_OSG_EXAMPLE( osgspheresegment osgSim osgParticle)
|
|
ADD_OSG_EXAMPLE( osgspotlight )
|
|
ADD_OSG_EXAMPLE( osgstereoimage )
|
|
ADD_OSG_EXAMPLE( osgteapot ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
|
|
ADD_OSG_EXAMPLE( osgtessellate)
|
|
ADD_OSG_EXAMPLE( osgtext osgText)
|
|
ADD_OSG_EXAMPLE( osgtexture1D )
|
|
ADD_OSG_EXAMPLE( osgtexture2D )
|
|
ADD_OSG_EXAMPLE( osgtexture3D )
|
|
ADD_OSG_EXAMPLE( osgtexturerectangle )
|
|
ADD_OSG_EXAMPLE( osgunittests )
|
|
ADD_OSG_EXAMPLE( osgvertexprogram )
|
|
ADD_OSG_EXAMPLE( osgvolume )
|
|
ADD_OSG_EXAMPLE( osgwindows )
|
|
|
|
|
|
#MESSAGE("---->${MY_EXAMPLE_LIST}<---------")
|
|
##########to get all the variables of Cmake
|
|
#GET_CMAKE_PROPERTY(MYVARS VARIABLES)
|
|
#FOREACH(myvar ${MYVARS})
|
|
# FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AllVariables.txt
|
|
# "${myvar} -->${${myvar}}<-\n"
|
|
# )
|
|
#ENDFOREACH(myvar)
|
|
|