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

Revision 9827, 8.4 kB (checked in by robert, 6 years ago)

Introduced osg::AudioStream? class to help manage audio streams coming in from movie reading plugins

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