root/OpenSceneGraph/trunk/examples/CMakeLists.txt @ 10697

Revision 10697, 6.4 kB (checked in by robert, 4 years ago)

From Cedric Pinson, updates to osganimation example to keep in sync with changes with osgAnimation, and introduction of a hardware skinning example

  • Property svn:eol-style set to native
RevLine 
[6382]1#######################################################
2# this are setting used in SETUP_EXAMPLE macro
3#######################################################
[6375]4SET(TARGET_DEFAULT_PREFIX "example_")
5SET(TARGET_DEFAULT_LABEL_PREFIX "Examples")
[6382]6
[6375]7SET(TARGET_COMMON_LIBRARIES
[8487]8    OpenThreads
9    osg
10    osgDB
11    osgUtil
12    osgGA
13    osgViewer
14    osgText
[6375]15)
[6309]16
[6994]17IF(DYNAMIC_OPENSCENEGRAPH)
[6375]18
[8939]19    ADD_SUBDIRECTORY(osg2cpp)
[6994]20    ADD_SUBDIRECTORY(osganimate)
[9291]21    ADD_SUBDIRECTORY(osgautocapture)
[6994]22    ADD_SUBDIRECTORY(osgautotransform)
23    ADD_SUBDIRECTORY(osgbillboard)
24    ADD_SUBDIRECTORY(osgblendequation)
25    ADD_SUBDIRECTORY(osgcallback)
26    ADD_SUBDIRECTORY(osgcamera)
27    ADD_SUBDIRECTORY(osgcatch)
28    ADD_SUBDIRECTORY(osgclip)
[7907]29    ADD_SUBDIRECTORY(osgcompositeviewer)
[6994]30    ADD_SUBDIRECTORY(osgcopy)
31    ADD_SUBDIRECTORY(osgcubemap)
32    ADD_SUBDIRECTORY(osgdelaunay)
[9587]33    ADD_SUBDIRECTORY(osgcluster)
[10310]34    ADD_SUBDIRECTORY(osgdatabaserevisions)
[6994]35    ADD_SUBDIRECTORY(osgdepthpartition)
[7346]36    ADD_SUBDIRECTORY(osgdepthpeeling)
[9448]37    ADD_SUBDIRECTORY(osgdrawinstanced)
[6994]38    ADD_SUBDIRECTORY(osgdistortion)
39    ADD_SUBDIRECTORY(osgfadetext)
[8274]40    ADD_SUBDIRECTORY(osgfont)
[6994]41    ADD_SUBDIRECTORY(osgforest)
42    ADD_SUBDIRECTORY(osgfxbrowser)
[9026]43    ADD_SUBDIRECTORY(osggameoflife)
[6994]44    ADD_SUBDIRECTORY(osggeodemo)
45    ADD_SUBDIRECTORY(osggeometry)
[7907]46    ADD_SUBDIRECTORY(osggeometryshaders)
[6994]47    ADD_SUBDIRECTORY(osghangglide)
48    ADD_SUBDIRECTORY(osghud)
[8637]49    ADD_SUBDIRECTORY(osgimagesequence)
[6994]50    ADD_SUBDIRECTORY(osgimpostor)
51    ADD_SUBDIRECTORY(osgintersection)
[8404]52    ADD_SUBDIRECTORY(osgkdtree)
[6994]53    ADD_SUBDIRECTORY(osgkeyboard)
54    ADD_SUBDIRECTORY(osgkeyboardmouse)
55    ADD_SUBDIRECTORY(osglauncher)
56    ADD_SUBDIRECTORY(osglight)
57    ADD_SUBDIRECTORY(osglightpoint)
58    ADD_SUBDIRECTORY(osglogicop)
59    ADD_SUBDIRECTORY(osglogo)
60    ADD_SUBDIRECTORY(osgmanipulator)
[9140]61    ADD_SUBDIRECTORY(osgmemorytest)
[6994]62    ADD_SUBDIRECTORY(osgmotionblur)
63    ADD_SUBDIRECTORY(osgmovie)
[8274]64    ADD_SUBDIRECTORY(osgmultiplerendertargets)
[6994]65    ADD_SUBDIRECTORY(osgmultitexture)
[7902]66    ADD_SUBDIRECTORY(osgmultitexturecontrol)
[6994]67    ADD_SUBDIRECTORY(osgoccluder)
[7731]68    ADD_SUBDIRECTORY(osgocclusionquery)
[9204]69    ADD_SUBDIRECTORY(osgpackeddepthstencil)
[6994]70    ADD_SUBDIRECTORY(osgpagedlod)
71    ADD_SUBDIRECTORY(osgparametric)
72    ADD_SUBDIRECTORY(osgparticle)
73    ADD_SUBDIRECTORY(osgparticleeffects)
74    ADD_SUBDIRECTORY(osgpick)
75    ADD_SUBDIRECTORY(osgplanets)
76    ADD_SUBDIRECTORY(osgpoints)
77    ADD_SUBDIRECTORY(osgpointsprite)
78    ADD_SUBDIRECTORY(osgprecipitation)
79    ADD_SUBDIRECTORY(osgprerender)
80    ADD_SUBDIRECTORY(osgprerendercubemap)
81    ADD_SUBDIRECTORY(osgreflect)
[9140]82    ADD_SUBDIRECTORY(osgrobot)
[6994]83    ADD_SUBDIRECTORY(osgscalarbar)
[8404]84    ADD_SUBDIRECTORY(osgscreencapture)
[6994]85    ADD_SUBDIRECTORY(osgscribe)
86    ADD_SUBDIRECTORY(osgsequence)
87    ADD_SUBDIRECTORY(osgshaders)
[9940]88    ADD_SUBDIRECTORY(osgshadergen)
[6994]89    ADD_SUBDIRECTORY(osgshaderterrain)
[10278]90    ADD_SUBDIRECTORY(osgshadercompositor)
[6994]91    ADD_SUBDIRECTORY(osgshadow)
92    ADD_SUBDIRECTORY(osgshape)
[7907]93    ADD_SUBDIRECTORY(osgsharedarray)
[6994]94    ADD_SUBDIRECTORY(osgsimplifier)
95    ADD_SUBDIRECTORY(osgsimulation)
[9229]96    ADD_SUBDIRECTORY(osgsidebyside)
[6994]97    ADD_SUBDIRECTORY(osgslice)
98    ADD_SUBDIRECTORY(osgspacewarp)
99    ADD_SUBDIRECTORY(osgspheresegment)
100    ADD_SUBDIRECTORY(osgspotlight)
101    ADD_SUBDIRECTORY(osgstereoimage)
[8082]102    ADD_SUBDIRECTORY(osgstereomatch)
[6994]103    ADD_SUBDIRECTORY(osgteapot)
[7907]104    ADD_SUBDIRECTORY(osgterrain)
[6994]105    ADD_SUBDIRECTORY(osgtext)
[7645]106    ADD_SUBDIRECTORY(osgtext3D)
[6994]107    ADD_SUBDIRECTORY(osgtexture1D)
108    ADD_SUBDIRECTORY(osgtexture2D)
109    ADD_SUBDIRECTORY(osgtexture3D)
110    ADD_SUBDIRECTORY(osgtexturerectangle)
[9971]111    ADD_SUBDIRECTORY(osgtexturecompression)
[7907]112    ADD_SUBDIRECTORY(osgthirdpersonview)
[6994]113    ADD_SUBDIRECTORY(osgunittests)
114    ADD_SUBDIRECTORY(osgvertexprogram)
[10617]115    ADD_SUBDIRECTORY(osgvertexattributes)
[6994]116    ADD_SUBDIRECTORY(osgvolume)
117    ADD_SUBDIRECTORY(osgwindows)
[10697]118    ADD_SUBDIRECTORY(osganimationhardware)
[9212]119    ADD_SUBDIRECTORY(osganimationtimeline)
120    ADD_SUBDIRECTORY(osganimationnode)
121    ADD_SUBDIRECTORY(osganimationmakepath)
[9877]122    ADD_SUBDIRECTORY(osganimationmorph)
[9212]123    ADD_SUBDIRECTORY(osganimationskinning)
124    ADD_SUBDIRECTORY(osganimationsolid)
[9291]125    ADD_SUBDIRECTORY(osganimationviewer)
[9213]126    ADD_SUBDIRECTORY(osgbrowser)
127    ADD_SUBDIRECTORY(osgwidgetaddremove)
128    ADD_SUBDIRECTORY(osgwidgetbox)
129    ADD_SUBDIRECTORY(osgwidgetcanvas)
130    ADD_SUBDIRECTORY(osgwidgetframe)
131    ADD_SUBDIRECTORY(osgwidgetinput)
132    ADD_SUBDIRECTORY(osgwidgetlabel)
[9291]133    ADD_SUBDIRECTORY(osgwidgetmessagebox)
[9213]134    ADD_SUBDIRECTORY(osgwidgetmenu)
135    ADD_SUBDIRECTORY(osgwidgetnotebook)
[9291]136    ADD_SUBDIRECTORY(osgwidgetperformance)
[9213]137    ADD_SUBDIRECTORY(osgwidgetscrolled)
138    ADD_SUBDIRECTORY(osgwidgetshader)
139    ADD_SUBDIRECTORY(osgwidgetstyled)
140    ADD_SUBDIRECTORY(osgwidgettable)
141    ADD_SUBDIRECTORY(osgwidgetwindow)
[6390]142
[10611]143IF(OSG_GLU_AVAILABLE)
144    ADD_SUBDIRECTORY(osgphotoalbum)
145    ADD_SUBDIRECTORY(osgtessellate)
146ENDIF()
147
[9319]148    ADD_SUBDIRECTORY(osgpdf)
[9156]149   
[6994]150    IF   (BUILD_OSG_WRAPPERS)
151        ADD_SUBDIRECTORY(osgintrospection)
152    ENDIF(BUILD_OSG_WRAPPERS)
[6390]153
[6994]154    IF   (GLUT_FOUND)
155        ADD_SUBDIRECTORY(osgviewerGLUT)
156    ENDIF(GLUT_FOUND)
[6390]157
[6994]158    IF   (SDL_FOUND)
159        ADD_SUBDIRECTORY(osgviewerSDL)
160    ENDIF(SDL_FOUND)
[6646]161
[8290]162    IF   (GTKGL_FOUND)
163        ADD_SUBDIRECTORY(osgviewerGTK)
164    ENDIF(GTKGL_FOUND)
165
[7154]166    IF   (FOX_FOUND)
167        ADD_SUBDIRECTORY(osgviewerFOX)
168    ENDIF(FOX_FOUND)
169
[6994]170    IF   (wxWidgets_FOUND)
171        ADD_SUBDIRECTORY(osgviewerWX)
172    ENDIF(wxWidgets_FOUND)
[6391]173
[9587]174    IF   (QT_FOUND AND QT_QTOPENGL_LIBRARY)
[6994]175        ADD_SUBDIRECTORY(osgviewerQT)
[10369]176        IF (QT4_FOUND)
177            ADD_SUBDIRECTORY(osgviewerQtWidget)
178        ENDIF()
179    ENDIF()
[6391]180
[10585]181    IF (QT4_FOUND)
182        ADD_SUBDIRECTORY(osgQtBrowser)
183    ENDIF()
184
[6994]185    IF   (FLTK_FOUND)
186        ADD_SUBDIRECTORY(osgviewerFLTK)
187    ENDIF(FLTK_FOUND)
[6685]188
[6994]189    IF   (WIN32)
190
191        OPTION(BUILD_MFC_EXAMPLE "Enable the build of the MFC Example" OFF)
192
193        IF   (BUILD_MFC_EXAMPLE)       
194            ADD_SUBDIRECTORY(osgviewerMFC)
195        ENDIF(BUILD_MFC_EXAMPLE)
196
197    ENDIF(WIN32)
198
[8487]199    IF   (APPLE)
200        ADD_SUBDIRECTORY(osgviewerCocoa)
201    ENDIF(APPLE)
202
[8588]203
[9212]204
[9082]205    IF   (LIBVNCSERVER_FOUND)
206        ADD_SUBDIRECTORY(osgvnc)
207    ENDIF(LIBVNCSERVER_FOUND)
208
209
[6994]210    #ADD_SUBDIRECTORY(osgcegui)
[9082]211
[6994]212    #to add subject to find socket#ADD_SUBDIRECTORY(osgcluster)
213
214ELSE(DYNAMIC_OPENSCENEGRAPH)
[9336]215    #needed on win32 or the linker get confused by _declspec declarations
216    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
[6994]217
[6751]218    ADD_SUBDIRECTORY(osgstaticviewer)
[6994]219   
220ENDIF(DYNAMIC_OPENSCENEGRAPH)
[6685]221
Note: See TracBrowser for help on using the browser.