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

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

New osgvertexattributes example designed to test conversion of fixed function scene graphs to use vertex shaders
and vertex attributes.

  • 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
17IF(DYNAMIC_OPENSCENEGRAPH)
18
19    ADD_SUBDIRECTORY(osg2cpp)
20    ADD_SUBDIRECTORY(osganimate)
21    ADD_SUBDIRECTORY(osgautocapture)
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)
29    ADD_SUBDIRECTORY(osgcompositeviewer)
30    ADD_SUBDIRECTORY(osgcopy)
31    ADD_SUBDIRECTORY(osgcubemap)
32    ADD_SUBDIRECTORY(osgdelaunay)
33    ADD_SUBDIRECTORY(osgcluster)
34    ADD_SUBDIRECTORY(osgdatabaserevisions)
35    ADD_SUBDIRECTORY(osgdepthpartition)
36    ADD_SUBDIRECTORY(osgdepthpeeling)
37    ADD_SUBDIRECTORY(osgdrawinstanced)
38    ADD_SUBDIRECTORY(osgdistortion)
39    ADD_SUBDIRECTORY(osgfadetext)
40    ADD_SUBDIRECTORY(osgfont)
41    ADD_SUBDIRECTORY(osgforest)
42    ADD_SUBDIRECTORY(osgfxbrowser)
43    ADD_SUBDIRECTORY(osggameoflife)
44    ADD_SUBDIRECTORY(osggeodemo)
45    ADD_SUBDIRECTORY(osggeometry)
46    ADD_SUBDIRECTORY(osggeometryshaders)
47    ADD_SUBDIRECTORY(osghangglide)
48    ADD_SUBDIRECTORY(osghud)
49    ADD_SUBDIRECTORY(osgimagesequence)
50    ADD_SUBDIRECTORY(osgimpostor)
51    ADD_SUBDIRECTORY(osgintersection)
52    ADD_SUBDIRECTORY(osgkdtree)
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)
61    ADD_SUBDIRECTORY(osgmemorytest)
62    ADD_SUBDIRECTORY(osgmotionblur)
63    ADD_SUBDIRECTORY(osgmovie)
64    ADD_SUBDIRECTORY(osgmultiplerendertargets)
65    ADD_SUBDIRECTORY(osgmultitexture)
66    ADD_SUBDIRECTORY(osgmultitexturecontrol)
67    ADD_SUBDIRECTORY(osgoccluder)
68    ADD_SUBDIRECTORY(osgocclusionquery)
69    ADD_SUBDIRECTORY(osgpackeddepthstencil)
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)
82    ADD_SUBDIRECTORY(osgrobot)
83    ADD_SUBDIRECTORY(osgscalarbar)
84    ADD_SUBDIRECTORY(osgscreencapture)
85    ADD_SUBDIRECTORY(osgscribe)
86    ADD_SUBDIRECTORY(osgsequence)
87    ADD_SUBDIRECTORY(osgshaders)
88    ADD_SUBDIRECTORY(osgshadergen)
89    ADD_SUBDIRECTORY(osgshaderterrain)
90    ADD_SUBDIRECTORY(osgshadercompositor)
91    ADD_SUBDIRECTORY(osgshadow)
92    ADD_SUBDIRECTORY(osgshape)
93    ADD_SUBDIRECTORY(osgsharedarray)
94    ADD_SUBDIRECTORY(osgsimplifier)
95    ADD_SUBDIRECTORY(osgsimulation)
96    ADD_SUBDIRECTORY(osgsidebyside)
97    ADD_SUBDIRECTORY(osgslice)
98    ADD_SUBDIRECTORY(osgspacewarp)
99    ADD_SUBDIRECTORY(osgspheresegment)
100    ADD_SUBDIRECTORY(osgspotlight)
101    ADD_SUBDIRECTORY(osgstereoimage)
102    ADD_SUBDIRECTORY(osgstereomatch)
103    ADD_SUBDIRECTORY(osgteapot)
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(osgunittests)
114    ADD_SUBDIRECTORY(osgvertexprogram)
115    ADD_SUBDIRECTORY(osgvertexattributes)
116    ADD_SUBDIRECTORY(osgvolume)
117    ADD_SUBDIRECTORY(osgwindows)
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(osgbrowser)
126    ADD_SUBDIRECTORY(osgwidgetaddremove)
127    ADD_SUBDIRECTORY(osgwidgetbox)
128    ADD_SUBDIRECTORY(osgwidgetcanvas)
129    ADD_SUBDIRECTORY(osgwidgetframe)
130    ADD_SUBDIRECTORY(osgwidgetinput)
131    ADD_SUBDIRECTORY(osgwidgetlabel)
132    ADD_SUBDIRECTORY(osgwidgetmessagebox)
133    ADD_SUBDIRECTORY(osgwidgetmenu)
134    ADD_SUBDIRECTORY(osgwidgetnotebook)
135    ADD_SUBDIRECTORY(osgwidgetperformance)
136    ADD_SUBDIRECTORY(osgwidgetscrolled)
137    ADD_SUBDIRECTORY(osgwidgetshader)
138    ADD_SUBDIRECTORY(osgwidgetstyled)
139    ADD_SUBDIRECTORY(osgwidgettable)
140    ADD_SUBDIRECTORY(osgwidgetwindow)
141
142IF(OSG_GLU_AVAILABLE)
143    ADD_SUBDIRECTORY(osgphotoalbum)
144    ADD_SUBDIRECTORY(osgtessellate)
145ENDIF()
146
147    ADD_SUBDIRECTORY(osgpdf)
148   
149    IF   (BUILD_OSG_WRAPPERS)
150        ADD_SUBDIRECTORY(osgintrospection)
151    ENDIF(BUILD_OSG_WRAPPERS)
152
153    IF   (GLUT_FOUND)
154        ADD_SUBDIRECTORY(osgviewerGLUT)
155    ENDIF(GLUT_FOUND)
156
157    IF   (SDL_FOUND)
158        ADD_SUBDIRECTORY(osgviewerSDL)
159    ENDIF(SDL_FOUND)
160
161    IF   (GTKGL_FOUND)
162        ADD_SUBDIRECTORY(osgviewerGTK)
163    ENDIF(GTKGL_FOUND)
164
165    IF   (FOX_FOUND)
166        ADD_SUBDIRECTORY(osgviewerFOX)
167    ENDIF(FOX_FOUND)
168
169    IF   (wxWidgets_FOUND)
170        ADD_SUBDIRECTORY(osgviewerWX)
171    ENDIF(wxWidgets_FOUND)
172
173    IF   (QT_FOUND AND QT_QTOPENGL_LIBRARY)
174        ADD_SUBDIRECTORY(osgviewerQT)
175        IF (QT4_FOUND)
176            ADD_SUBDIRECTORY(osgviewerQtWidget)
177        ENDIF()
178    ENDIF()
179
180    IF (QT4_FOUND)
181        ADD_SUBDIRECTORY(osgQtBrowser)
182    ENDIF()
183
184    IF   (FLTK_FOUND)
185        ADD_SUBDIRECTORY(osgviewerFLTK)
186    ENDIF(FLTK_FOUND)
187
188    IF   (WIN32)
189
190        OPTION(BUILD_MFC_EXAMPLE "Enable the build of the MFC Example" OFF)
191
192        IF   (BUILD_MFC_EXAMPLE)       
193            ADD_SUBDIRECTORY(osgviewerMFC)
194        ENDIF(BUILD_MFC_EXAMPLE)
195
196    ENDIF(WIN32)
197
198    IF   (APPLE)
199        ADD_SUBDIRECTORY(osgviewerCocoa)
200    ENDIF(APPLE)
201
202
203
204    IF   (LIBVNCSERVER_FOUND)
205        ADD_SUBDIRECTORY(osgvnc)
206    ENDIF(LIBVNCSERVER_FOUND)
207
208
209    #ADD_SUBDIRECTORY(osgcegui)
210
211    #to add subject to find socket#ADD_SUBDIRECTORY(osgcluster)
212
213ELSE(DYNAMIC_OPENSCENEGRAPH)
214    #needed on win32 or the linker get confused by _declspec declarations
215    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
216
217    ADD_SUBDIRECTORY(osgstaticviewer)
218   
219ENDIF(DYNAMIC_OPENSCENEGRAPH)
220
Note: See TracBrowser for help on using the browser.