root/OpenSceneGraph/branches/OpenSceneGraph-2.8.2/src/osgUtil/CMakeLists.txt @ 10664

Revision 10664, 3.2 kB (checked in by paulmartz, 4 years ago)

Add CMake-controllable option to avoid doing a glBlitFramebuffer into depth to resolve multisampling. This works arouns a hang on OS X with NVIDIA GeForce? 8800 and v1.5.49 drivers.

  • Property svn:eol-style set to native
RevLine 
[6321]1
2# FIXME: For OS X, need flag for Framework or dylib
3IF   (DYNAMIC_OPENSCENEGRAPH)
[7364]4    ADD_DEFINITIONS(-DOSGUTIL_LIBRARY)
[6321]5ELSE (DYNAMIC_OPENSCENEGRAPH)
[7364]6    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
[6321]7ENDIF(DYNAMIC_OPENSCENEGRAPH)
8
[10664]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
[6321]19SET(LIB_NAME osgUtil)
20SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
21SET(LIB_PUBLIC_HEADERS
[7724]22    ${HEADER_PATH}/ConvertVec
[7364]23    ${HEADER_PATH}/CubeMapGenerator
24    ${HEADER_PATH}/CullVisitor
25    ${HEADER_PATH}/DelaunayTriangulator
26    ${HEADER_PATH}/DisplayRequirementsVisitor
[7752]27    ${HEADER_PATH}/DrawElementTypeSimplifier
[7724]28    ${HEADER_PATH}/EdgeCollector
[7364]29    ${HEADER_PATH}/Export
30    ${HEADER_PATH}/GLObjectsVisitor
31    ${HEADER_PATH}/HalfWayMapGenerator
32    ${HEADER_PATH}/HighlightMapGenerator
[7724]33    ${HEADER_PATH}/IntersectionVisitor
[7364]34    ${HEADER_PATH}/IntersectVisitor
35    ${HEADER_PATH}/LineSegmentIntersector
[7724]36    ${HEADER_PATH}/OperationArrayFunctor
[7364]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
[7724]45    ${HEADER_PATH}/ReversePrimitiveFunctor
[7364]46    ${HEADER_PATH}/SceneView
[7924]47    ${HEADER_PATH}/SceneGraphBuilder
[7364]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
[6321]59)
60
61ADD_LIBRARY(${LIB_NAME}
[7364]62    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
[8211]63    ${LIB_PUBLIC_HEADERS}
[7364]64    CubeMapGenerator.cpp
65    CullVisitor.cpp
66    DelaunayTriangulator.cpp
67    DisplayRequirementsVisitor.cpp
[7752]68    DrawElementTypeSimplifier.cpp
[7724]69    EdgeCollector.cpp
[7364]70    GLObjectsVisitor.cpp
71    HalfWayMapGenerator.cpp
72    HighlightMapGenerator.cpp
[7724]73    IntersectionVisitor.cpp
[7364]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
[7724]83    ReversePrimitiveFunctor.cpp
[7364]84    SceneView.cpp
85    Simplifier.cpp
86    SmoothingVisitor.cpp
[7924]87    SceneGraphBuilder.cpp
[7364]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
[7724]98    TriStripVisitor.cpp
[7364]99    UpdateVisitor.cpp
100    Version.cpp
[6321]101)
102
[7364]103LINK_INTERNAL(${LIB_NAME}     
104    osg
105    OpenThreads
[6321]106)
[6402]107LINK_CORELIB_DEFAULT(${LIB_NAME})
[6321]108
109INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.