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

Revision 10671, 8.5 kB (checked in by robert, 5 years ago)

From Cedric Pinson, "Here a patch to be able to clone stateattribute, in order to do that i
moved the StateAttribute::Callback structure to a file
StateAttributeCallback? with the same behavior as NodeCallback?.
"

  • 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
[10671]143    ${HEADER_PATH}/StateAttributeCallback
[7046]144    ${HEADER_PATH}/StateSet
145    ${HEADER_PATH}/Stats
146    ${HEADER_PATH}/Stencil
147    ${HEADER_PATH}/StencilTwoSided
148    ${HEADER_PATH}/Switch
[7047]149    ${HEADER_PATH}/TemplatePrimitiveFunctor
[7046]150    ${HEADER_PATH}/TexEnv
151    ${HEADER_PATH}/TexEnvCombine
152    ${HEADER_PATH}/TexEnvFilter
153    ${HEADER_PATH}/TexGen
154    ${HEADER_PATH}/TexGenNode
155    ${HEADER_PATH}/TexMat
156    ${HEADER_PATH}/Texture
157    ${HEADER_PATH}/Texture1D
158    ${HEADER_PATH}/Texture2D
[7371]159    ${HEADER_PATH}/Texture2DArray
[7046]160    ${HEADER_PATH}/Texture3D
161    ${HEADER_PATH}/TextureCubeMap
162    ${HEADER_PATH}/TextureRectangle
163    ${HEADER_PATH}/Timer
[8477]164    ${HEADER_PATH}/TransferFunction
[7046]165    ${HEADER_PATH}/Transform
166    ${HEADER_PATH}/TriangleFunctor
167    ${HEADER_PATH}/TriangleIndexFunctor
168    ${HEADER_PATH}/Uniform
169    ${HEADER_PATH}/Vec2
170    ${HEADER_PATH}/Vec2b
171    ${HEADER_PATH}/Vec2d
172    ${HEADER_PATH}/Vec2f
173    ${HEADER_PATH}/Vec2s
174    ${HEADER_PATH}/Vec3
175    ${HEADER_PATH}/Vec3b
176    ${HEADER_PATH}/Vec3d
177    ${HEADER_PATH}/Vec3f
178    ${HEADER_PATH}/Vec3s
179    ${HEADER_PATH}/Vec4
180    ${HEADER_PATH}/Vec4b
181    ${HEADER_PATH}/Vec4d
182    ${HEADER_PATH}/Vec4f
183    ${HEADER_PATH}/Vec4s
184    ${HEADER_PATH}/Vec4ub
185    ${HEADER_PATH}/Version
186    ${HEADER_PATH}/VertexProgram
187    ${HEADER_PATH}/View
188    ${HEADER_PATH}/Viewport
[8482]189    ${OPENSCENEGRAPH_CONFIG_HEADER}
[6321]190)
191
192ADD_LIBRARY(${LIB_NAME}
[7046]193    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
[8211]194    ${LIB_PUBLIC_HEADERS}
[7046]195    AlphaFunc.cpp
196    AnimationPath.cpp
197    ApplicationUsage.cpp
198    ArgumentParser.cpp
199    Array.cpp
[10650]200    ArrayDispatchers.cpp
[9827]201    AudioStream.cpp
[7046]202    AutoTransform.cpp
203    Billboard.cpp
204    BlendColor.cpp
205    BlendEquation.cpp
206    BlendFunc.cpp
207    BufferObject.cpp
208    Camera.cpp
209    CameraView.cpp
210    ClampColor.cpp
211    ClearNode.cpp
212    ClipNode.cpp
213    ClipPlane.cpp
214    ClusterCullingCallback.cpp
215    CollectOccludersVisitor.cpp
216    ColorMask.cpp
217    ColorMatrix.cpp
218    ComputeBoundsVisitor.cpp
219    ConvexPlanarOccluder.cpp
220    ConvexPlanarPolygon.cpp
221    CoordinateSystemNode.cpp
222    CopyOp.cpp
223    CullFace.cpp
[9218]224    CullingSet.cpp
[7046]225    CullSettings.cpp
226    CullStack.cpp
227    DeleteHandler.cpp
228    Depth.cpp
229    DisplaySettings.cpp
[9218]230    Drawable.cpp
[7046]231    DrawPixels.cpp
[9218]232    dxtctool.cpp
233    dxtctool.h
[7046]234    Fog.cpp
235    FragmentProgram.cpp
236    FrameBufferObject.cpp
237    FrameStamp.cpp
238    FrontFace.cpp
[9218]239    Geode.cpp
240    Geometry.cpp
[7825]241    GL2Extensions.cpp
[7046]242    GLExtensions.cpp
[10642]243    GLBeginEndAdapter.cpp
[7074]244    GLObjects.cpp
[7046]245    GraphicsContext.cpp
246    GraphicsThread.cpp
247    Group.cpp
248    Hint.cpp
249    Image.cpp
[8632]250    ImageSequence.cpp
[7046]251    ImageStream.cpp
[9479]252    ImageUtils.cpp
[8535]253    KdTree.cpp
[7046]254    Light.cpp
255    LightModel.cpp
256    LightSource.cpp
257    LineSegment.cpp
258    LineStipple.cpp
259    LineWidth.cpp
[9218]260    LOD.cpp
[7046]261    LogicOp.cpp
262    Material.cpp
[9218]263    Math.cpp
264    Matrixd.cpp
[7046]265    MatrixDecomposition.cpp
[9218]266    Matrixf.cpp
[7046]267    # We don't build this one
268    #    Matrix_implementation.cpp
[9218]269    MatrixTransform.cpp
[7046]270    Multisample.cpp
[9218]271    NodeCallback.cpp
[7046]272    Node.cpp
273    NodeTrackerCallback.cpp
274    NodeVisitor.cpp
275    Notify.cpp
276    Object.cpp
277    OccluderNode.cpp
[7731]278    OcclusionQueryNode.cpp
[7108]279    OperationThread.cpp
[7046]280    PagedLOD.cpp
281    Point.cpp
282    PointSprite.cpp
283    PolygonMode.cpp
284    PolygonOffset.cpp
285    PolygonStipple.cpp
286    PositionAttitudeTransform.cpp
287    PrimitiveSet.cpp
288    Program.cpp
289    Projection.cpp
290    ProxyNode.cpp
291    Quat.cpp
292    Referenced.cpp
293    Scissor.cpp
294    Sequence.cpp
295    ShadeModel.cpp
296    Shader.cpp
297    ShadowVolumeOccluder.cpp
298    Shape.cpp
299    ShapeDrawable.cpp
[9218]300    StateAttribute.cpp
[7046]301    State.cpp
302    StateSet.cpp
303    Stats.cpp
304    Stencil.cpp
305    StencilTwoSided.cpp
306    Switch.cpp
[9218]307    TexEnvCombine.cpp
[7046]308    TexEnv.cpp
309    TexEnvFilter.cpp
310    TexGen.cpp
311    TexGenNode.cpp
312    TexMat.cpp
313    Texture1D.cpp
[9218]314    Texture2DArray.cpp
[7046]315    Texture2D.cpp
316    Texture3D.cpp
[9218]317    Texture.cpp
[7046]318    TextureCubeMap.cpp
319    TextureRectangle.cpp
[9218]320    Timer.cpp
[7046]321    TransferFunction.cpp
322    Transform.cpp
323    Uniform.cpp
324    Version.cpp
325    VertexProgram.cpp
326    View.cpp
327    Viewport.cpp
[9671]328    ${OPENSCENEGRAPH_VERSIONINFO_RC}
[6321]329)
330
[7046]331LINK_INTERNAL(${LIB_NAME}     
332    OpenThreads
[6588]333)
[7046]334LINK_EXTERNAL(${LIB_NAME} ${CMAKE_THREAD_LIBS_INIT}    ${MATH_LIBRARY} )
[6430]335LINK_CORELIB_DEFAULT(${LIB_NAME} ${CMAKE_THREAD_LIBS_INIT} ${MATH_LIBRARY} )
[6321]336
337INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.