root/OpenSceneGraph/trunk/src/osg/CMakeLists.txt @ 7074

Revision 7074, 7.5 kB (checked in by robert, 7 years ago)

Added include/osg/GLObjects + .cpp which provide osg::flush*DeletedGLObjects() methods.

Added and cleaned up DeleteHandler? calls in osgViewer to help avoid crashes on exit.

Changed DatabasePager? across to dynamically checcking osg::getCompileContext(..)

Updated wrappers.

  • Property svn:eol-style set to native
Line 
1
2# FIXME: For OS X, need flag for Framework or dylib
3IF   (DYNAMIC_OPENSCENEGRAPH)
4    ADD_DEFINITIONS(-DOSG_LIBRARY)
5ELSE (DYNAMIC_OPENSCENEGRAPH)
6    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
7ENDIF(DYNAMIC_OPENSCENEGRAPH)
8
9SET(LIB_NAME osg)
10
11SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
12SET(LIB_PUBLIC_HEADERS
13    ${HEADER_PATH}/AlphaFunc
14    ${HEADER_PATH}/AnimationPath
15    ${HEADER_PATH}/ApplicationUsage
16    ${HEADER_PATH}/ArgumentParser
17    ${HEADER_PATH}/Array
18    ${HEADER_PATH}/AutoTransform
19    ${HEADER_PATH}/Billboard
20    ${HEADER_PATH}/BlendColor
21    ${HEADER_PATH}/BlendEquation
22    ${HEADER_PATH}/BlendFunc
23    ${HEADER_PATH}/BoundingBox
24    ${HEADER_PATH}/BoundingSphere
25    ${HEADER_PATH}/BoundsChecking
26    ${HEADER_PATH}/BufferObject
27    ${HEADER_PATH}/Camera
28    ${HEADER_PATH}/CameraNode
29    ${HEADER_PATH}/CameraView
30    ${HEADER_PATH}/ClampColor
31    ${HEADER_PATH}/ClearNode
32    ${HEADER_PATH}/ClipNode
33    ${HEADER_PATH}/ClipPlane
34    ${HEADER_PATH}/ClusterCullingCallback
35    ${HEADER_PATH}/CollectOccludersVisitor
36    ${HEADER_PATH}/ColorMask
37    ${HEADER_PATH}/ColorMatrix
38    ${HEADER_PATH}/ComputeBoundsVisitor
39    ${HEADER_PATH}/ConvexPlanarOccluder
40    ${HEADER_PATH}/ConvexPlanarPolygon
41    ${HEADER_PATH}/CoordinateSystemNode
42    ${HEADER_PATH}/CopyOp
43    ${HEADER_PATH}/CullFace
44    ${HEADER_PATH}/CullSettings
45    ${HEADER_PATH}/CullStack
46    ${HEADER_PATH}/CullingSet
47    ${HEADER_PATH}/DeleteHandler
48    ${HEADER_PATH}/Depth
49    ${HEADER_PATH}/DisplaySettings
50    ${HEADER_PATH}/DrawPixels
51    ${HEADER_PATH}/Drawable
52    ${HEADER_PATH}/Endian
53    ${HEADER_PATH}/Export
54    ${HEADER_PATH}/Fog
55    ${HEADER_PATH}/FragmentProgram
56    ${HEADER_PATH}/FrameBufferObject
57    ${HEADER_PATH}/FrameStamp
58    ${HEADER_PATH}/FrontFace
59    ${HEADER_PATH}/GL
60    ${HEADER_PATH}/GL2Extensions
61    ${HEADER_PATH}/GLExtensions
62    ${HEADER_PATH}/GLObjects
63    ${HEADER_PATH}/GLU
64    ${HEADER_PATH}/Geode
65    ${HEADER_PATH}/Geometry
66    ${HEADER_PATH}/GraphicsContext
67    ${HEADER_PATH}/GraphicsThread
68    ${HEADER_PATH}/Group
69    ${HEADER_PATH}/Hint
70    ${HEADER_PATH}/Image
71    ${HEADER_PATH}/ImageStream
72    ${HEADER_PATH}/LOD
73    ${HEADER_PATH}/Light
74    ${HEADER_PATH}/LightModel
75    ${HEADER_PATH}/LightSource
76    ${HEADER_PATH}/LineSegment
77    ${HEADER_PATH}/LineStipple
78    ${HEADER_PATH}/LineWidth
79    ${HEADER_PATH}/LogicOp
80    ${HEADER_PATH}/Material
81    ${HEADER_PATH}/Math
82    ${HEADER_PATH}/Matrix
83    ${HEADER_PATH}/MatrixTransform
84    ${HEADER_PATH}/Matrixd
85    ${HEADER_PATH}/Matrixf
86    ${HEADER_PATH}/Multisample
87    ${HEADER_PATH}/Node
88    ${HEADER_PATH}/NodeCallback
89    ${HEADER_PATH}/NodeTrackerCallback
90    ${HEADER_PATH}/NodeVisitor
91    ${HEADER_PATH}/Notify
92    ${HEADER_PATH}/Object
93    ${HEADER_PATH}/OccluderNode
94    ${HEADER_PATH}/PagedLOD
95    ${HEADER_PATH}/Plane
96    ${HEADER_PATH}/Point
97    ${HEADER_PATH}/PointSprite
98    ${HEADER_PATH}/PolygonMode
99    ${HEADER_PATH}/PolygonOffset
100    ${HEADER_PATH}/PolygonStipple
101    ${HEADER_PATH}/Polytope
102    ${HEADER_PATH}/PositionAttitudeTransform
103    ${HEADER_PATH}/PrimitiveSet
104    ${HEADER_PATH}/Program
105    ${HEADER_PATH}/Projection
106    ${HEADER_PATH}/ProxyNode
107    ${HEADER_PATH}/Quat
108    ${HEADER_PATH}/Referenced
109    ${HEADER_PATH}/RenderInfo
110    ${HEADER_PATH}/Scissor
111    ${HEADER_PATH}/Sequence
112    ${HEADER_PATH}/ShadeModel
113    ${HEADER_PATH}/Shader
114    ${HEADER_PATH}/ShadowVolumeOccluder
115    ${HEADER_PATH}/Shape
116    ${HEADER_PATH}/ShapeDrawable
117    ${HEADER_PATH}/State
118    ${HEADER_PATH}/StateAttribute
119    ${HEADER_PATH}/StateSet
120    ${HEADER_PATH}/Stats
121    ${HEADER_PATH}/Stencil
122    ${HEADER_PATH}/StencilTwoSided
123    ${HEADER_PATH}/Switch
124    ${HEADER_PATH}/TemplatePrimitiveFunctor
125    ${HEADER_PATH}/TexEnv
126    ${HEADER_PATH}/TexEnvCombine
127    ${HEADER_PATH}/TexEnvFilter
128    ${HEADER_PATH}/TexGen
129    ${HEADER_PATH}/TexGenNode
130    ${HEADER_PATH}/TexMat
131    ${HEADER_PATH}/Texture
132    ${HEADER_PATH}/Texture1D
133    ${HEADER_PATH}/Texture2D
134    ${HEADER_PATH}/Texture3D
135    ${HEADER_PATH}/TextureCubeMap
136    ${HEADER_PATH}/TextureRectangle
137    ${HEADER_PATH}/Timer
138    ${HEADER_PATH}/Transform
139    ${HEADER_PATH}/TriangleFunctor
140    ${HEADER_PATH}/TriangleIndexFunctor
141    ${HEADER_PATH}/TransferFunction
142    ${HEADER_PATH}/Uniform
143    ${HEADER_PATH}/Vec2
144    ${HEADER_PATH}/Vec2b
145    ${HEADER_PATH}/Vec2d
146    ${HEADER_PATH}/Vec2f
147    ${HEADER_PATH}/Vec2s
148    ${HEADER_PATH}/Vec3
149    ${HEADER_PATH}/Vec3b
150    ${HEADER_PATH}/Vec3d
151    ${HEADER_PATH}/Vec3f
152    ${HEADER_PATH}/Vec3s
153    ${HEADER_PATH}/Vec4
154    ${HEADER_PATH}/Vec4b
155    ${HEADER_PATH}/Vec4d
156    ${HEADER_PATH}/Vec4f
157    ${HEADER_PATH}/Vec4s
158    ${HEADER_PATH}/Vec4ub
159    ${HEADER_PATH}/Version
160    ${HEADER_PATH}/VertexProgram
161    ${HEADER_PATH}/View
162    ${HEADER_PATH}/Viewport
163    ${HEADER_PATH}/buffered_value
164    ${HEADER_PATH}/fast_back_stack
165    ${HEADER_PATH}/io_utils
166    ${HEADER_PATH}/observer_ptr
167    ${HEADER_PATH}/ref_ptr
168)
169
170ADD_LIBRARY(${LIB_NAME}
171    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
172    ${LIB_PUBLIC_HEADERS}
173    AlphaFunc.cpp
174    AnimationPath.cpp
175    ApplicationUsage.cpp
176    ArgumentParser.cpp
177    Array.cpp
178    AutoTransform.cpp
179    Billboard.cpp
180    BlendColor.cpp
181    BlendEquation.cpp
182    BlendFunc.cpp
183    BoundingBox.cpp
184    BoundingSphere.cpp
185    BufferObject.cpp
186    Camera.cpp
187    CameraView.cpp
188    ClampColor.cpp
189    ClearNode.cpp
190    ClipNode.cpp
191    ClipPlane.cpp
192    ClusterCullingCallback.cpp
193    CollectOccludersVisitor.cpp
194    ColorMask.cpp
195    ColorMatrix.cpp
196    ComputeBoundsVisitor.cpp
197    ConvexPlanarOccluder.cpp
198    ConvexPlanarPolygon.cpp
199    CoordinateSystemNode.cpp
200    CopyOp.cpp
201    CullFace.cpp
202    CullSettings.cpp
203    CullStack.cpp
204    CullingSet.cpp
205    DeleteHandler.cpp
206    Depth.cpp
207    DisplaySettings.cpp
208    DrawPixels.cpp
209    Drawable.cpp
210    Fog.cpp
211    FragmentProgram.cpp
212    FrameBufferObject.cpp
213    FrameStamp.cpp
214    FrontFace.cpp
215    GLExtensions.cpp
216    GLObjects.cpp
217    Geode.cpp
218    Geometry.cpp
219    GraphicsContext.cpp
220    GraphicsThread.cpp
221    Group.cpp
222    Hint.cpp
223    Image.cpp
224    ImageStream.cpp
225    LOD.cpp
226    Light.cpp
227    LightModel.cpp
228    LightSource.cpp
229    LineSegment.cpp
230    LineStipple.cpp
231    LineWidth.cpp
232    LogicOp.cpp
233    Material.cpp
234    MatrixDecomposition.cpp
235    MatrixTransform.cpp
236    # We don't build this one
237    #    Matrix_implementation.cpp
238    Matrixd.cpp
239    Matrixf.cpp
240    Multisample.cpp
241    Node.cpp
242    NodeCallback.cpp
243    NodeTrackerCallback.cpp
244    NodeVisitor.cpp
245    Notify.cpp
246    Object.cpp
247    OccluderNode.cpp
248    PagedLOD.cpp
249    Point.cpp
250    PointSprite.cpp
251    PolygonMode.cpp
252    PolygonOffset.cpp
253    PolygonStipple.cpp
254    PositionAttitudeTransform.cpp
255    PrimitiveSet.cpp
256    Program.cpp
257    Projection.cpp
258    ProxyNode.cpp
259    Quat.cpp
260    Referenced.cpp
261    Scissor.cpp
262    Sequence.cpp
263    ShadeModel.cpp
264    Shader.cpp
265    ShadowVolumeOccluder.cpp
266    Shape.cpp
267    ShapeDrawable.cpp
268    State.cpp
269    StateAttribute.cpp
270    StateSet.cpp
271    Stats.cpp
272    Stencil.cpp
273    StencilTwoSided.cpp
274    Switch.cpp
275    TexEnv.cpp
276    TexEnvCombine.cpp
277    TexEnvFilter.cpp
278    TexGen.cpp
279    TexGenNode.cpp
280    TexMat.cpp
281    Texture.cpp
282    Texture1D.cpp
283    Texture2D.cpp
284    Texture3D.cpp
285    TextureCubeMap.cpp
286    TextureRectangle.cpp
287    TransferFunction.cpp
288    Timer.cpp
289    Transform.cpp
290    Uniform.cpp
291    Version.cpp
292    VertexProgram.cpp
293    View.cpp
294    Viewport.cpp
295    dxtctool.cpp
296    dxtctool.h
297)
298
299LINK_INTERNAL(${LIB_NAME}     
300    OpenThreads
301)
302LINK_EXTERNAL(${LIB_NAME} ${CMAKE_THREAD_LIBS_INIT}    ${MATH_LIBRARY} )
303LINK_CORELIB_DEFAULT(${LIB_NAME} ${CMAKE_THREAD_LIBS_INIT} ${MATH_LIBRARY} )
304
305INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.