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

Revision 10889, 6.7 kB (checked in by robert, 4 years ago)

Added checked against QT webkit being available

  • 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
[10829]17
[6994]18IF(DYNAMIC_OPENSCENEGRAPH)
[6375]19
[8939]20    ADD_SUBDIRECTORY(osg2cpp)
[6994]21    ADD_SUBDIRECTORY(osganimate)
[9291]22    ADD_SUBDIRECTORY(osgautocapture)
[6994]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)
[7907]30    ADD_SUBDIRECTORY(osgcompositeviewer)
[6994]31    ADD_SUBDIRECTORY(osgcopy)
32    ADD_SUBDIRECTORY(osgcubemap)
33    ADD_SUBDIRECTORY(osgdelaunay)
[9587]34    ADD_SUBDIRECTORY(osgcluster)
[10310]35    ADD_SUBDIRECTORY(osgdatabaserevisions)
[6994]36    ADD_SUBDIRECTORY(osgdepthpartition)
[7346]37    ADD_SUBDIRECTORY(osgdepthpeeling)
[9448]38    ADD_SUBDIRECTORY(osgdrawinstanced)
[6994]39    ADD_SUBDIRECTORY(osgdistortion)
40    ADD_SUBDIRECTORY(osgfadetext)
[8274]41    ADD_SUBDIRECTORY(osgfont)
[6994]42    ADD_SUBDIRECTORY(osgforest)
43    ADD_SUBDIRECTORY(osgfxbrowser)
[10869]44    ADD_SUBDIRECTORY(osgoutline)
[9026]45    ADD_SUBDIRECTORY(osggameoflife)
[6994]46    ADD_SUBDIRECTORY(osggeodemo)
47    ADD_SUBDIRECTORY(osggeometry)
[7907]48    ADD_SUBDIRECTORY(osggeometryshaders)
[6994]49    ADD_SUBDIRECTORY(osghangglide)
50    ADD_SUBDIRECTORY(osghud)
[8637]51    ADD_SUBDIRECTORY(osgimagesequence)
[6994]52    ADD_SUBDIRECTORY(osgimpostor)
53    ADD_SUBDIRECTORY(osgintersection)
[8404]54    ADD_SUBDIRECTORY(osgkdtree)
[6994]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)
[10846]62    ADD_SUBDIRECTORY(osggpx)
[6994]63    ADD_SUBDIRECTORY(osgmanipulator)
64    ADD_SUBDIRECTORY(osgmovie)
[8274]65    ADD_SUBDIRECTORY(osgmultiplerendertargets)
[6994]66    ADD_SUBDIRECTORY(osgmultitexture)
[7902]67    ADD_SUBDIRECTORY(osgmultitexturecontrol)
[10829]68    ADD_SUBDIRECTORY(osgmultiviewpaging)
[6994]69    ADD_SUBDIRECTORY(osgoccluder)
[7731]70    ADD_SUBDIRECTORY(osgocclusionquery)
[9204]71    ADD_SUBDIRECTORY(osgpackeddepthstencil)
[6994]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)
[9140]84    ADD_SUBDIRECTORY(osgrobot)
[6994]85    ADD_SUBDIRECTORY(osgscalarbar)
86    ADD_SUBDIRECTORY(osgscribe)
87    ADD_SUBDIRECTORY(osgsequence)
88    ADD_SUBDIRECTORY(osgshaders)
[9940]89    ADD_SUBDIRECTORY(osgshadergen)
[6994]90    ADD_SUBDIRECTORY(osgshaderterrain)
[10278]91    ADD_SUBDIRECTORY(osgshadercompositor)
[6994]92    ADD_SUBDIRECTORY(osgshadow)
93    ADD_SUBDIRECTORY(osgshape)
[7907]94    ADD_SUBDIRECTORY(osgsharedarray)
[6994]95    ADD_SUBDIRECTORY(osgsimplifier)
96    ADD_SUBDIRECTORY(osgsimulation)
[9229]97    ADD_SUBDIRECTORY(osgsidebyside)
[6994]98    ADD_SUBDIRECTORY(osgslice)
99    ADD_SUBDIRECTORY(osgspacewarp)
100    ADD_SUBDIRECTORY(osgspheresegment)
101    ADD_SUBDIRECTORY(osgspotlight)
102    ADD_SUBDIRECTORY(osgstereoimage)
[8082]103    ADD_SUBDIRECTORY(osgstereomatch)
[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(osgvertexprogram)
[10617]114    ADD_SUBDIRECTORY(osgvertexattributes)
[6994]115    ADD_SUBDIRECTORY(osgvolume)
116    ADD_SUBDIRECTORY(osgwindows)
[10697]117    ADD_SUBDIRECTORY(osganimationhardware)
[9212]118    ADD_SUBDIRECTORY(osganimationtimeline)
119    ADD_SUBDIRECTORY(osganimationnode)
120    ADD_SUBDIRECTORY(osganimationmakepath)
[9877]121    ADD_SUBDIRECTORY(osganimationmorph)
[9212]122    ADD_SUBDIRECTORY(osganimationskinning)
123    ADD_SUBDIRECTORY(osganimationsolid)
[9291]124    ADD_SUBDIRECTORY(osganimationviewer)
[9213]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)
[9291]132    ADD_SUBDIRECTORY(osgwidgetmessagebox)
[9213]133    ADD_SUBDIRECTORY(osgwidgetmenu)
134    ADD_SUBDIRECTORY(osgwidgetnotebook)
[9291]135    ADD_SUBDIRECTORY(osgwidgetperformance)
[9213]136    ADD_SUBDIRECTORY(osgwidgetscrolled)
137    ADD_SUBDIRECTORY(osgwidgetshader)
138    ADD_SUBDIRECTORY(osgwidgetstyled)
139    ADD_SUBDIRECTORY(osgwidgettable)
140    ADD_SUBDIRECTORY(osgwidgetwindow)
[6390]141
[10763]142    IF(OSG_CPP_EXCEPTIONS_AVAILABLE)
143        ADD_SUBDIRECTORY(osgunittests)
144        ADD_SUBDIRECTORY(osgmemorytest)
145    ENDIF()
[10709]146
[10763]147    IF(NOT OSG_GLES1_AVAILABLE AND NOT OSG_GLES2_AVAILABLE AND NOT OSG_GL3_AVAILABLE)
148        ADD_SUBDIRECTORY(osgscreencapture)
149        ADD_SUBDIRECTORY(osgmotionblur)
150        ADD_SUBDIRECTORY(osgteapot)
151    ENDIF()
[10611]152
[10763]153    IF(OSG_GLU_AVAILABLE)
154        ADD_SUBDIRECTORY(osgphotoalbum)
155        ADD_SUBDIRECTORY(osgtessellate)
156    ENDIF()
157
[9319]158    ADD_SUBDIRECTORY(osgpdf)
[9156]159   
[6994]160    IF   (BUILD_OSG_WRAPPERS)
161        ADD_SUBDIRECTORY(osgintrospection)
162    ENDIF(BUILD_OSG_WRAPPERS)
[6390]163
[6994]164    IF   (GLUT_FOUND)
165        ADD_SUBDIRECTORY(osgviewerGLUT)
166    ENDIF(GLUT_FOUND)
[6390]167
[6994]168    IF   (SDL_FOUND)
169        ADD_SUBDIRECTORY(osgviewerSDL)
170    ENDIF(SDL_FOUND)
[6646]171
[8290]172    IF   (GTKGL_FOUND)
173        ADD_SUBDIRECTORY(osgviewerGTK)
174    ENDIF(GTKGL_FOUND)
175
[7154]176    IF   (FOX_FOUND)
177        ADD_SUBDIRECTORY(osgviewerFOX)
178    ENDIF(FOX_FOUND)
179
[6994]180    IF   (wxWidgets_FOUND)
181        ADD_SUBDIRECTORY(osgviewerWX)
182    ENDIF(wxWidgets_FOUND)
[6391]183
[9587]184    IF   (QT_FOUND AND QT_QTOPENGL_LIBRARY)
[6994]185        ADD_SUBDIRECTORY(osgviewerQT)
[10369]186        IF (QT4_FOUND)
187            ADD_SUBDIRECTORY(osgviewerQtWidget)
188        ENDIF()
189    ENDIF()
[6391]190
[10889]191    IF (QT4_FOUND AND QT_QTWEBKIT_FOUND)
[10585]192        ADD_SUBDIRECTORY(osgQtBrowser)
193    ENDIF()
194
[6994]195    IF   (FLTK_FOUND)
196        ADD_SUBDIRECTORY(osgviewerFLTK)
197    ENDIF(FLTK_FOUND)
[6685]198
[6994]199    IF   (WIN32)
200
201        OPTION(BUILD_MFC_EXAMPLE "Enable the build of the MFC Example" OFF)
202
203        IF   (BUILD_MFC_EXAMPLE)       
204            ADD_SUBDIRECTORY(osgviewerMFC)
205        ENDIF(BUILD_MFC_EXAMPLE)
206
207    ENDIF(WIN32)
208
[8487]209    IF   (APPLE)
210        ADD_SUBDIRECTORY(osgviewerCocoa)
211    ENDIF(APPLE)
212
[8588]213
[9212]214
[9082]215    IF   (LIBVNCSERVER_FOUND)
216        ADD_SUBDIRECTORY(osgvnc)
217    ENDIF(LIBVNCSERVER_FOUND)
218
219
[6994]220    #ADD_SUBDIRECTORY(osgcegui)
[9082]221
[6994]222    #to add subject to find socket#ADD_SUBDIRECTORY(osgcluster)
223
224ELSE(DYNAMIC_OPENSCENEGRAPH)
[9336]225    #needed on win32 or the linker get confused by _declspec declarations
226    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
[6994]227
[6751]228    ADD_SUBDIRECTORY(osgstaticviewer)
[6994]229   
230ENDIF(DYNAMIC_OPENSCENEGRAPH)
[6685]231
Note: See TracBrowser for help on using the browser.