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

Revision 11115, 6.9 kB (checked in by robert, 5 years ago)

From Jeremy Moles, submitted by Cedric Pinson "Here an new example from Jeremy Moles that demonstrate EaseMotion from
osgAnimation, i have updated EaseMotion with new type, so for users of
EaseMotion just have look, it's a great example."

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