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

Revision 13482, 8.0 kB (checked in by robert, 5 days ago)

Fixed comment

  • 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(ANDROID)
18    # ADD_SUBDIRECTORY(osgandroidsimple)
19ELSE(ANDROID)
20
21IF(DYNAMIC_OPENSCENEGRAPH)
22
23    ADD_SUBDIRECTORY(osg2cpp)
24    ADD_SUBDIRECTORY(osganalysis)
25    ADD_SUBDIRECTORY(osganimate)
26    ADD_SUBDIRECTORY(osgatomiccounter)
27    ADD_SUBDIRECTORY(osgautocapture)
28    ADD_SUBDIRECTORY(osgautotransform)
29    ADD_SUBDIRECTORY(osgbillboard)
30    ADD_SUBDIRECTORY(osgblendequation)
31    ADD_SUBDIRECTORY(osgcallback)
32    ADD_SUBDIRECTORY(osgcamera)
33    ADD_SUBDIRECTORY(osgcatch)
34    ADD_SUBDIRECTORY(osgclip)
35    ADD_SUBDIRECTORY(osgcompositeviewer)
36    ADD_SUBDIRECTORY(osgcopy)
37    ADD_SUBDIRECTORY(osgcubemap)
38    ADD_SUBDIRECTORY(osgdelaunay)
39    ADD_SUBDIRECTORY(osgcluster)
40    ADD_SUBDIRECTORY(osgdatabaserevisions)
41    ADD_SUBDIRECTORY(osgdepthpartition)
42    ADD_SUBDIRECTORY(osgdepthpeeling)
43    ADD_SUBDIRECTORY(osgdrawinstanced)
44    ADD_SUBDIRECTORY(osgdistortion)
45    ADD_SUBDIRECTORY(osgfadetext)
46    ADD_SUBDIRECTORY(osgfont)
47    ADD_SUBDIRECTORY(osgforest)
48    ADD_SUBDIRECTORY(osgfxbrowser)
49    ADD_SUBDIRECTORY(osgframerenderer)
50    ADD_SUBDIRECTORY(osgoutline)
51    ADD_SUBDIRECTORY(osggameoflife)
52    ADD_SUBDIRECTORY(osggeometry)
53    ADD_SUBDIRECTORY(osggeometryshaders)
54    ADD_SUBDIRECTORY(osghangglide)
55    ADD_SUBDIRECTORY(osghud)
56    ADD_SUBDIRECTORY(osgimagesequence)
57    ADD_SUBDIRECTORY(osgimpostor)
58    ADD_SUBDIRECTORY(osgintersection)
59    ADD_SUBDIRECTORY(osgkdtree)
60    ADD_SUBDIRECTORY(osgkeyboard)
61    ADD_SUBDIRECTORY(osgkeyboardmouse)
62    ADD_SUBDIRECTORY(osgkeystone)
63    ADD_SUBDIRECTORY(osglauncher)
64    ADD_SUBDIRECTORY(osglight)
65    ADD_SUBDIRECTORY(osglightpoint)
66    ADD_SUBDIRECTORY(osglogicop)
67    ADD_SUBDIRECTORY(osglogo)
68    ADD_SUBDIRECTORY(osggpx)
69    ADD_SUBDIRECTORY(osggraphicscost)
70    ADD_SUBDIRECTORY(osgmanipulator)
71    ADD_SUBDIRECTORY(osgmovie)
72    ADD_SUBDIRECTORY(osgmultiplemovies)
73    ADD_SUBDIRECTORY(osgmultiplerendertargets)
74    ADD_SUBDIRECTORY(osgmultitexture)
75    ADD_SUBDIRECTORY(osgmultitexturecontrol)
76    ADD_SUBDIRECTORY(osgmultitouch)
77    ADD_SUBDIRECTORY(osgmultiviewpaging)
78    ADD_SUBDIRECTORY(osgoccluder)
79    ADD_SUBDIRECTORY(osgocclusionquery)
80    ADD_SUBDIRECTORY(osgoit)
81    ADD_SUBDIRECTORY(osgoscdevice)
82    ADD_SUBDIRECTORY(osgpackeddepthstencil)
83    ADD_SUBDIRECTORY(osgpagedlod)
84    ADD_SUBDIRECTORY(osgparametric)
85    ADD_SUBDIRECTORY(osgparticle)
86    ADD_SUBDIRECTORY(osgparticleeffects)
87    ADD_SUBDIRECTORY(osgparticleshader)
88    ADD_SUBDIRECTORY(osgpick)
89    ADD_SUBDIRECTORY(osgplanets)
90    ADD_SUBDIRECTORY(osgpoints)
91    ADD_SUBDIRECTORY(osgpointsprite)
92    ADD_SUBDIRECTORY(osgposter)
93    ADD_SUBDIRECTORY(osgprecipitation)
94    ADD_SUBDIRECTORY(osgprerender)
95    ADD_SUBDIRECTORY(osgprerendercubemap)
96    ADD_SUBDIRECTORY(osgreflect)
97    ADD_SUBDIRECTORY(osgrobot)
98    ADD_SUBDIRECTORY(osgscalarbar)
99    ADD_SUBDIRECTORY(osgscribe)
100    ADD_SUBDIRECTORY(osgsequence)
101    ADD_SUBDIRECTORY(osgshaders)
102    ADD_SUBDIRECTORY(osgshadercomposition)
103    ADD_SUBDIRECTORY(osgshadergen)
104    ADD_SUBDIRECTORY(osgshaderterrain)
105    # ADD_SUBDIRECTORY(osgshadercompositor)
106    ADD_SUBDIRECTORY(osgshadow)
107    ADD_SUBDIRECTORY(osgshape)
108    ADD_SUBDIRECTORY(osgsharedarray)
109    ADD_SUBDIRECTORY(osgsimpleshaders)
110    ADD_SUBDIRECTORY(osgsimplifier)
111    ADD_SUBDIRECTORY(osgsimulation)
112    ADD_SUBDIRECTORY(osgsidebyside)
113    ADD_SUBDIRECTORY(osgslice)
114    ADD_SUBDIRECTORY(osgspacewarp)
115    ADD_SUBDIRECTORY(osgspheresegment)
116    ADD_SUBDIRECTORY(osgspotlight)
117    ADD_SUBDIRECTORY(osgstereoimage)
118    ADD_SUBDIRECTORY(osgstereomatch)
119    ADD_SUBDIRECTORY(osgterrain)
120    ADD_SUBDIRECTORY(osgthreadedterrain)
121    ADD_SUBDIRECTORY(osgtext)
122    ADD_SUBDIRECTORY(osgtext3D)
123    ADD_SUBDIRECTORY(osgtexture1D)
124    ADD_SUBDIRECTORY(osgtexture2D)
125    ADD_SUBDIRECTORY(osgtexture3D)
126    ADD_SUBDIRECTORY(osgtexturerectangle)
127    ADD_SUBDIRECTORY(osgtexturecompression)
128    ADD_SUBDIRECTORY(osgthirdpersonview)
129    ADD_SUBDIRECTORY(osguniformbuffer)
130    ADD_SUBDIRECTORY(osguserstats)
131    ADD_SUBDIRECTORY(osgvertexprogram)
132    ADD_SUBDIRECTORY(osgvertexattributes)
133    ADD_SUBDIRECTORY(osgvolume)
134    ADD_SUBDIRECTORY(osgwindows)
135    ADD_SUBDIRECTORY(osgvirtualprogram)
136    ADD_SUBDIRECTORY(osganimationhardware)
137    ADD_SUBDIRECTORY(osganimationtimeline)
138    ADD_SUBDIRECTORY(osganimationnode)
139    ADD_SUBDIRECTORY(osganimationmakepath)
140    ADD_SUBDIRECTORY(osganimationmorph)
141    ADD_SUBDIRECTORY(osganimationskinning)
142    ADD_SUBDIRECTORY(osganimationsolid)
143    ADD_SUBDIRECTORY(osganimationviewer)
144    ADD_SUBDIRECTORY(osganimationeasemotion)
145    ADD_SUBDIRECTORY(osgwidgetaddremove)
146    ADD_SUBDIRECTORY(osgwidgetbox)
147    ADD_SUBDIRECTORY(osgwidgetcanvas)
148    ADD_SUBDIRECTORY(osgwidgetframe)
149    ADD_SUBDIRECTORY(osgwidgetinput)
150    ADD_SUBDIRECTORY(osgwidgetlabel)
151    ADD_SUBDIRECTORY(osgwidgetmessagebox)
152    ADD_SUBDIRECTORY(osgwidgetmenu)
153    ADD_SUBDIRECTORY(osgwidgetnotebook)
154    ADD_SUBDIRECTORY(osgwidgetperformance)
155    ADD_SUBDIRECTORY(osgwidgetscrolled)
156    ADD_SUBDIRECTORY(osgwidgetshader)
157    ADD_SUBDIRECTORY(osgwidgetstyled)
158    ADD_SUBDIRECTORY(osgwidgettable)
159    ADD_SUBDIRECTORY(osgwidgetwindow)
160    ADD_SUBDIRECTORY(osguserdata)
161
162    # GL3/GL4 example
163    ADD_SUBDIRECTORY(osgsimplegl3)
164
165    IF(OSG_CPP_EXCEPTIONS_AVAILABLE)
166        ADD_SUBDIRECTORY(osgunittests)
167        ADD_SUBDIRECTORY(osgmemorytest)
168    ENDIF()
169
170    IF(NOT OSG_GL3_AVAILABLE)
171        ADD_SUBDIRECTORY(osgfpdepth)
172    ENDIF()
173
174    IF(NOT OSG_GLES1_AVAILABLE AND NOT OSG_GLES2_AVAILABLE AND NOT OSG_GL3_AVAILABLE)
175        ADD_SUBDIRECTORY(osgscreencapture)
176        ADD_SUBDIRECTORY(osgmotionblur)
177        ADD_SUBDIRECTORY(osgteapot)
178    ENDIF()
179
180    ADD_SUBDIRECTORY(osgphotoalbum)
181    ADD_SUBDIRECTORY(osgtessellate)
182    ADD_SUBDIRECTORY(osgtessellationshaders)
183    ADD_SUBDIRECTORY(osgcomputeshaders)
184
185    ADD_SUBDIRECTORY(osgpdf)
186
187    IF   (GLUT_FOUND)
188        ADD_SUBDIRECTORY(osgviewerGLUT)
189    ENDIF(GLUT_FOUND)
190
191    IF   (SDL_FOUND)
192        ADD_SUBDIRECTORY(osgviewerSDL)
193    ENDIF(SDL_FOUND)
194
195    IF   (GTKGL_FOUND)
196        ADD_SUBDIRECTORY(osgviewerGTK)
197    ENDIF(GTKGL_FOUND)
198
199    IF   (FOX_FOUND)
200        ADD_SUBDIRECTORY(osgviewerFOX)
201    ENDIF(FOX_FOUND)
202
203    IF   (wxWidgets_FOUND AND CMAKE_BUILD_TYPE)
204        IF (${CMAKE_BUILD_TYPE} STREQUAL "Release")
205            ADD_SUBDIRECTORY(osgviewerWX)
206        ENDIF()
207    ENDIF()
208
209    IF   ( (QT4_FOUND OR Qt5Widgets_FOUND) AND NOT OSG_GLES1_AVAILABLE AND NOT OSG_GLES2_AVAILABLE AND NOT OSG_GL3_AVAILABLE)
210
211        IF ( QT4_FOUND OR Qt5Widgets_FOUND)
212            ADD_SUBDIRECTORY(osgviewerQt)
213            ADD_SUBDIRECTORY(osgqfont)
214        ENDIF()
215
216        IF ( (QT4_FOUND AND QT_QTWEBKIT_FOUND) OR Qt5WebKitWidgets_FOUND )
217            ADD_SUBDIRECTORY(osgQtWidgets)
218            ADD_SUBDIRECTORY(osgQtBrowser)
219        ENDIF()
220
221    ENDIF()
222
223    IF   (FLTK_FOUND AND FLTK_GL_LIBRARY)
224        ADD_SUBDIRECTORY(osgviewerFLTK)
225    ENDIF()
226
227    IF   (WIN32)
228
229        OPTION(BUILD_MFC_EXAMPLE "Enable the build of the MFC Example" OFF)
230
231        IF   (BUILD_MFC_EXAMPLE)
232            ADD_SUBDIRECTORY(osgviewerMFC)
233        ENDIF(BUILD_MFC_EXAMPLE)
234
235    ENDIF(WIN32)
236
237    IF   (APPLE)
238        ADD_SUBDIRECTORY(osgviewerCocoa)
239    ENDIF(APPLE)
240
241    IF(DIRECTINPUT_FOUND)
242       ADD_SUBDIRECTORY(osgdirectinput)
243    ENDIF(DIRECTINPUT_FOUND)
244
245    IF   (LIBVNCSERVER_FOUND)
246        ADD_SUBDIRECTORY(osgvnc)
247    ENDIF(LIBVNCSERVER_FOUND)
248
249    #to add subject to find socket#ADD_SUBDIRECTORY(osgcluster)
250
251ELSE(DYNAMIC_OPENSCENEGRAPH)
252    #needed on win32 or the linker get confused by _declspec declarations
253    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
254
255    ADD_SUBDIRECTORY(osgstaticviewer)
256
257    # IPHONE_PORT@tom
258    IF(OSG_BUILD_PLATFORM_IPHONE OR OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
259        ADD_SUBDIRECTORY(osgviewerIPhone)
260    ENDIF()
261     # IPHONE_PORT@tom
262
263ENDIF(DYNAMIC_OPENSCENEGRAPH)
264
265ENDIF(ANDROID)
266
Note: See TracBrowser for help on using the browser.