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

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

Removed include/osg/Config as it was causing problem with Windows build

  • 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()
6    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
7ENDIF()
8
9SET(LIB_NAME osg)
10
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()
19
20
21SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
22SET(LIB_PUBLIC_HEADERS
23    ${HEADER_PATH}/AlphaFunc
24    ${HEADER_PATH}/AnimationPath
25    ${HEADER_PATH}/ApplicationUsage
26    ${HEADER_PATH}/ArgumentParser
27    ${HEADER_PATH}/Array
28    ${HEADER_PATH}/ArrayDispatchers
29    ${HEADER_PATH}/AudioStream
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
38    ${HEADER_PATH}/buffered_value
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
57    ${HEADER_PATH}/CullingSet
58    ${HEADER_PATH}/CullSettings
59    ${HEADER_PATH}/CullStack
60    ${HEADER_PATH}/DeleteHandler
61    ${HEADER_PATH}/Depth
62    ${HEADER_PATH}/DisplaySettings
63    ${HEADER_PATH}/Drawable
64    ${HEADER_PATH}/DrawPixels
65    ${HEADER_PATH}/Endian
66    ${HEADER_PATH}/Export
67    ${HEADER_PATH}/fast_back_stack
68    ${HEADER_PATH}/Fog
69    ${HEADER_PATH}/FragmentProgram
70    ${HEADER_PATH}/FrameBufferObject
71    ${HEADER_PATH}/FrameStamp
72    ${HEADER_PATH}/FrontFace
73    ${HEADER_PATH}/Geode
74    ${HEADER_PATH}/Geometry
75    ${HEADER_PATH}/GL
76    ${HEADER_PATH}/GL2Extensions
77    ${HEADER_PATH}/GLExtensions
78    ${HEADER_PATH}/GLBeginEndAdapter
79    ${HEADER_PATH}/GLObjects
80    ${HEADER_PATH}/GLU
81    ${HEADER_PATH}/GraphicsContext
82    ${HEADER_PATH}/GraphicsThread
83    ${HEADER_PATH}/Group
84    ${HEADER_PATH}/Hint
85    ${HEADER_PATH}/Image
86    ${HEADER_PATH}/ImageSequence
87    ${HEADER_PATH}/ImageStream
88    ${HEADER_PATH}/ImageUtils
89    ${HEADER_PATH}/io_utils
90    ${HEADER_PATH}/KdTree
91    ${HEADER_PATH}/Light
92    ${HEADER_PATH}/LightModel
93    ${HEADER_PATH}/LightSource
94    ${HEADER_PATH}/LineSegment
95    ${HEADER_PATH}/LineStipple
96    ${HEADER_PATH}/LineWidth
97    ${HEADER_PATH}/LOD
98    ${HEADER_PATH}/LogicOp
99    ${HEADER_PATH}/Material
100    ${HEADER_PATH}/Math
101    ${HEADER_PATH}/Matrix
102    ${HEADER_PATH}/Matrixd
103    ${HEADER_PATH}/Matrixf
104    ${HEADER_PATH}/MatrixTransform
105    ${HEADER_PATH}/MixinVector
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
113    ${HEADER_PATH}/observer_ptr
114    ${HEADER_PATH}/OccluderNode
115    ${HEADER_PATH}/OcclusionQueryNode
116    ${HEADER_PATH}/OperationThread
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
132    ${HEADER_PATH}/ref_ptr
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}/StateAttributeCallback
144    ${HEADER_PATH}/StateSet
145    ${HEADER_PATH}/Stats
146    ${HEADER_PATH}/Stencil
147    ${HEADER_PATH}/StencilTwoSided
148    ${HEADER_PATH}/Switch
149    ${HEADER_PATH}/TemplatePrimitiveFunctor
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
159    ${HEADER_PATH}/Texture2DArray
160    ${HEADER_PATH}/Texture3D
161    ${HEADER_PATH}/TextureCubeMap
162    ${HEADER_PATH}/TextureRectangle
163    ${HEADER_PATH}/Timer
164    ${HEADER_PATH}/TransferFunction
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
189    ${OPENSCENEGRAPH_CONFIG_HEADER}
190)
191
192ADD_LIBRARY(${LIB_NAME}
193    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
194    ${LIB_PUBLIC_HEADERS}
195    AlphaFunc.cpp
196    AnimationPath.cpp
197    ApplicationUsage.cpp
198    ArgumentParser.cpp
199    Array.cpp
200    ArrayDispatchers.cpp
201    AudioStream.cpp
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
224    CullingSet.cpp
225    CullSettings.cpp
226    CullStack.cpp
227    DeleteHandler.cpp
228    Depth.cpp
229    DisplaySettings.cpp
230    Drawable.cpp
231    DrawPixels.cpp
232    dxtctool.cpp
233    dxtctool.h
234    Fog.cpp
235    FragmentProgram.cpp
236    FrameBufferObject.cpp
237    FrameStamp.cpp
238    FrontFace.cpp
239    Geode.cpp
240    Geometry.cpp
241    GL2Extensions.cpp
242    GLExtensions.cpp
243    GLBeginEndAdapter.cpp
244    GLObjects.cpp
245    GraphicsContext.cpp
246    GraphicsThread.cpp
247    Group.cpp
248    Hint.cpp
249    Image.cpp
250    ImageSequence.cpp
251    ImageStream.cpp
252    ImageUtils.cpp
253    KdTree.cpp
254    Light.cpp
255    LightModel.cpp
256    LightSource.cpp
257    LineSegment.cpp
258    LineStipple.cpp
259    LineWidth.cpp
260    LOD.cpp
261    LogicOp.cpp
262    Material.cpp
263    Math.cpp
264    Matrixd.cpp
265    MatrixDecomposition.cpp
266    Matrixf.cpp
267    # We don't build this one
268    #    Matrix_implementation.cpp
269    MatrixTransform.cpp
270    Multisample.cpp
271    NodeCallback.cpp
272    Node.cpp
273    NodeTrackerCallback.cpp
274    NodeVisitor.cpp
275    Notify.cpp
276    Object.cpp
277    OccluderNode.cpp
278    OcclusionQueryNode.cpp
279    OperationThread.cpp
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
300    StateAttribute.cpp
301    State.cpp
302    StateSet.cpp
303    Stats.cpp
304    Stencil.cpp
305    StencilTwoSided.cpp
306    Switch.cpp
307    TexEnvCombine.cpp
308    TexEnv.cpp
309    TexEnvFilter.cpp
310    TexGen.cpp
311    TexGenNode.cpp
312    TexMat.cpp
313    Texture1D.cpp
314    Texture2DArray.cpp
315    Texture2D.cpp
316    Texture3D.cpp
317    Texture.cpp
318    TextureCubeMap.cpp
319    TextureRectangle.cpp
320    Timer.cpp
321    TransferFunction.cpp
322    Transform.cpp
323    Uniform.cpp
324    Version.cpp
325    VertexProgram.cpp
326    View.cpp
327    Viewport.cpp
328    ${OPENSCENEGRAPH_VERSIONINFO_RC}
329)
330
331LINK_INTERNAL(${LIB_NAME}     
332    OpenThreads
333)
334LINK_EXTERNAL(${LIB_NAME} ${CMAKE_THREAD_LIBS_INIT}    ${MATH_LIBRARY} ${RT_LIBRARY} )
335LINK_CORELIB_DEFAULT(${LIB_NAME} ${CMAKE_THREAD_LIBS_INIT} ${MATH_LIBRARY} ${RT_LIBRARY} )
336
337INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.