root/OpenSceneGraph/branches/OpenSceneGraph-2.8/src/osgUtil/CMakeLists.txt @ 11208

Revision 11208, 3.2 kB (checked in by paulmartz, 5 years ago)

Merge 10664 to 2.8 branch (MSFBO workaround for OS X).

  • 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(-DOSGUTIL_LIBRARY)
5ELSE (DYNAMIC_OPENSCENEGRAPH)
6    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
7ENDIF(DYNAMIC_OPENSCENEGRAPH)
8
9
10#
11# MSFBO resolve blit to depth buffer control.
12#
13OPTION(OSG_MULTISAMPLE_FBO_RESOLVE_IGNORES_DEPTH "Set to ON to ignore depth when resolving multisampled FBO rendering. This is a workaround for a crash on OS X with NVIDIA driver 1.5.49." OFF)
14IF(OSG_MULTISAMPLE_FBO_RESOLVE_IGNORES_DEPTH)
15    ADD_DEFINITIONS(-DOSG_MULTISAMPLE_FBO_RESOLVE_IGNORES_DEPTH)
16ENDIF(OSG_MULTISAMPLE_FBO_RESOLVE_IGNORES_DEPTH)
17
18
19SET(LIB_NAME osgUtil)
20SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
21SET(LIB_PUBLIC_HEADERS
22    ${HEADER_PATH}/ConvertVec
23    ${HEADER_PATH}/CubeMapGenerator
24    ${HEADER_PATH}/CullVisitor
25    ${HEADER_PATH}/DelaunayTriangulator
26    ${HEADER_PATH}/DisplayRequirementsVisitor
27    ${HEADER_PATH}/DrawElementTypeSimplifier
28    ${HEADER_PATH}/EdgeCollector
29    ${HEADER_PATH}/Export
30    ${HEADER_PATH}/GLObjectsVisitor
31    ${HEADER_PATH}/HalfWayMapGenerator
32    ${HEADER_PATH}/HighlightMapGenerator
33    ${HEADER_PATH}/IntersectionVisitor
34    ${HEADER_PATH}/IntersectVisitor
35    ${HEADER_PATH}/LineSegmentIntersector
36    ${HEADER_PATH}/OperationArrayFunctor
37    ${HEADER_PATH}/Optimizer
38    ${HEADER_PATH}/PlaneIntersector
39    ${HEADER_PATH}/PolytopeIntersector
40    ${HEADER_PATH}/PositionalStateContainer
41    ${HEADER_PATH}/ReflectionMapGenerator
42    ${HEADER_PATH}/RenderBin
43    ${HEADER_PATH}/RenderLeaf
44    ${HEADER_PATH}/RenderStage
45    ${HEADER_PATH}/ReversePrimitiveFunctor
46    ${HEADER_PATH}/SceneView
47    ${HEADER_PATH}/SceneGraphBuilder
48    ${HEADER_PATH}/Simplifier
49    ${HEADER_PATH}/SmoothingVisitor
50    ${HEADER_PATH}/StateGraph
51    ${HEADER_PATH}/Statistics
52    ${HEADER_PATH}/TangentSpaceGenerator
53    ${HEADER_PATH}/Tessellator
54    ${HEADER_PATH}/TransformAttributeFunctor
55    ${HEADER_PATH}/TransformCallback
56    ${HEADER_PATH}/TriStripVisitor
57    ${HEADER_PATH}/UpdateVisitor
58    ${HEADER_PATH}/Version
59)
60
61ADD_LIBRARY(${LIB_NAME}
62    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
63    ${LIB_PUBLIC_HEADERS}
64    CubeMapGenerator.cpp
65    CullVisitor.cpp
66    DelaunayTriangulator.cpp
67    DisplayRequirementsVisitor.cpp
68    DrawElementTypeSimplifier.cpp
69    EdgeCollector.cpp
70    GLObjectsVisitor.cpp
71    HalfWayMapGenerator.cpp
72    HighlightMapGenerator.cpp
73    IntersectionVisitor.cpp
74    IntersectVisitor.cpp
75    LineSegmentIntersector.cpp
76    Optimizer.cpp
77    PlaneIntersector.cpp
78    PolytopeIntersector.cpp
79    PositionalStateContainer.cpp
80    RenderBin.cpp
81    RenderLeaf.cpp
82    RenderStage.cpp
83    ReversePrimitiveFunctor.cpp
84    SceneView.cpp
85    Simplifier.cpp
86    SmoothingVisitor.cpp
87    SceneGraphBuilder.cpp
88    StateGraph.cpp
89    Statistics.cpp
90    TangentSpaceGenerator.cpp
91    Tessellator.cpp
92    TransformAttributeFunctor.cpp
93    TransformCallback.cpp
94    TriStrip_graph_array.h
95    TriStrip_heap_array.h
96    TriStrip_tri_stripper.cpp
97    TriStrip_tri_stripper.h
98    TriStripVisitor.cpp
99    UpdateVisitor.cpp
100    Version.cpp
101)
102
103LINK_INTERNAL(${LIB_NAME}     
104    osg
105    OpenThreads
106)
107LINK_CORELIB_DEFAULT(${LIB_NAME})
108
109INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.