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

Revision 11253, 7.0 kB (checked in by robert, 4 years ago)

Renamed osgterrain to osgthreadedterrain to better reflect it's functionality.

  • 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(osgthreadedterrain)
106    ADD_SUBDIRECTORY(osgtext)
107    ADD_SUBDIRECTORY(osgtext3D)
108    ADD_SUBDIRECTORY(osgtexture1D)
109    ADD_SUBDIRECTORY(osgtexture2D)
110    ADD_SUBDIRECTORY(osgtexture3D)
111    ADD_SUBDIRECTORY(osgtexturerectangle)
112    ADD_SUBDIRECTORY(osgtexturecompression)
113    ADD_SUBDIRECTORY(osgthirdpersonview)
114    ADD_SUBDIRECTORY(osgvertexprogram)
115    ADD_SUBDIRECTORY(osgvertexattributes)
116    ADD_SUBDIRECTORY(osgvolume)
117    ADD_SUBDIRECTORY(osgwindows)
118    ADD_SUBDIRECTORY(osganimationhardware)
119    ADD_SUBDIRECTORY(osganimationtimeline)
120    ADD_SUBDIRECTORY(osganimationnode)
121    ADD_SUBDIRECTORY(osganimationmakepath)
122    ADD_SUBDIRECTORY(osganimationmorph)
123    ADD_SUBDIRECTORY(osganimationskinning)
124    ADD_SUBDIRECTORY(osganimationsolid)
125    ADD_SUBDIRECTORY(osganimationviewer)
126    ADD_SUBDIRECTORY(osganimationeasemotion)
127    ADD_SUBDIRECTORY(osgbrowser)
128    ADD_SUBDIRECTORY(osgwidgetaddremove)
129    ADD_SUBDIRECTORY(osgwidgetbox)
130    ADD_SUBDIRECTORY(osgwidgetcanvas)
131    ADD_SUBDIRECTORY(osgwidgetframe)
132    ADD_SUBDIRECTORY(osgwidgetinput)
133    ADD_SUBDIRECTORY(osgwidgetlabel)
134    ADD_SUBDIRECTORY(osgwidgetmessagebox)
135    ADD_SUBDIRECTORY(osgwidgetmenu)
136    ADD_SUBDIRECTORY(osgwidgetnotebook)
137    ADD_SUBDIRECTORY(osgwidgetperformance)
138    ADD_SUBDIRECTORY(osgwidgetscrolled)
139    ADD_SUBDIRECTORY(osgwidgetshader)
140    ADD_SUBDIRECTORY(osgwidgetstyled)
141    ADD_SUBDIRECTORY(osgwidgettable)
142    ADD_SUBDIRECTORY(osgwidgetwindow)
143
144    IF(OSG_CPP_EXCEPTIONS_AVAILABLE)
145        ADD_SUBDIRECTORY(osgunittests)
146        ADD_SUBDIRECTORY(osgmemorytest)
147    ENDIF()
148
149    IF(NOT OSG_GLES1_AVAILABLE AND NOT OSG_GLES2_AVAILABLE AND NOT OSG_GL3_AVAILABLE)
150        ADD_SUBDIRECTORY(osgscreencapture)
151        ADD_SUBDIRECTORY(osgmotionblur)
152        ADD_SUBDIRECTORY(osgteapot)
153    ENDIF()
154
155    IF(OSG_GLU_AVAILABLE)
156        ADD_SUBDIRECTORY(osgphotoalbum)
157        ADD_SUBDIRECTORY(osgtessellate)
158    ENDIF()
159
160    ADD_SUBDIRECTORY(osgpdf)
161   
162    IF   (BUILD_OSG_WRAPPERS)
163        ADD_SUBDIRECTORY(osgintrospection)
164    ENDIF(BUILD_OSG_WRAPPERS)
165
166    IF   (GLUT_FOUND)
167        ADD_SUBDIRECTORY(osgviewerGLUT)
168    ENDIF(GLUT_FOUND)
169
170    IF   (SDL_FOUND)
171        ADD_SUBDIRECTORY(osgviewerSDL)
172    ENDIF(SDL_FOUND)
173
174    IF   (GTKGL_FOUND)
175        ADD_SUBDIRECTORY(osgviewerGTK)
176    ENDIF(GTKGL_FOUND)
177
178    IF   (FOX_FOUND)
179        ADD_SUBDIRECTORY(osgviewerFOX)
180    ENDIF(FOX_FOUND)
181
182    IF   (wxWidgets_FOUND)
183        ADD_SUBDIRECTORY(osgviewerWX)
184    ENDIF(wxWidgets_FOUND)
185
186    IF   (QT_FOUND)
187        OPTION(BUILD_QT_EXAMPLES "Enable the build of the examples that depend on Qt" ON)
188
189        IF (BUILD_QT_EXAMPLES AND QT_QTOPENGL_LIBRARY)
190            ADD_SUBDIRECTORY(osgviewerQT)
191        ENDIF()
192
193        IF (BUILD_QT_EXAMPLES AND QT4_FOUND)
194            ADD_SUBDIRECTORY(osgviewerQtWidget)
195
196            IF (QT_QTWEBKIT_FOUND)
197                ADD_SUBDIRECTORY(osgQtBrowser)
198            ENDIF()
199        ENDIF()
200    ENDIF()
201
202    IF   (FLTK_FOUND)
203        ADD_SUBDIRECTORY(osgviewerFLTK)
204    ENDIF(FLTK_FOUND)
205
206    IF   (WIN32)
207
208        OPTION(BUILD_MFC_EXAMPLE "Enable the build of the MFC Example" OFF)
209
210        IF   (BUILD_MFC_EXAMPLE)       
211            ADD_SUBDIRECTORY(osgviewerMFC)
212        ENDIF(BUILD_MFC_EXAMPLE)
213
214    ENDIF(WIN32)
215
216    IF   (APPLE)
217        ADD_SUBDIRECTORY(osgviewerCocoa)
218    ENDIF(APPLE)
219
220
221
222    IF   (LIBVNCSERVER_FOUND)
223        ADD_SUBDIRECTORY(osgvnc)
224    ENDIF(LIBVNCSERVER_FOUND)
225
226
227    #ADD_SUBDIRECTORY(osgcegui)
228
229    #to add subject to find socket#ADD_SUBDIRECTORY(osgcluster)
230
231ELSE(DYNAMIC_OPENSCENEGRAPH)
232    #needed on win32 or the linker get confused by _declspec declarations
233    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
234
235    ADD_SUBDIRECTORY(osgstaticviewer)
236   
237ENDIF(DYNAMIC_OPENSCENEGRAPH)
238
Note: See TracBrowser for help on using the browser.