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

Revision 9949, 8.3 kB (checked in by robert, 5 years ago)

From Philip Lowman, "Here's the promised cleanup of the OSG's CMakeLists.txt files for the src/ folder. I'll submit the others separately.

Also, there was also a small bug in osgDB's CMakeLists.txt that was causing an error when I tested with CMake 2.4.4.

IF(${OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX} STREQUAL "quicktime")
was changed to
IF(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX STREQUAL "quicktime")
"

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