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

Revision 10650, 8.4 kB (checked in by robert, 5 years ago)

Refactored osg::Geometry::drawImplementation(..) to use new osg::ArrayDispatchers? that encapsulate the task
of dispatch osg::Array data as OpenGL attributes.


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