IF(ZLIB_FOUND)
    ADD_DEFINITIONS(-DUSE_ZLIB)
    INCLUDE_DIRECTORIES( ${ZLIB_INCLUDE_DIR})
ENDIF(ZLIB_FOUND)


SET(TARGET_SRC
    AlphaFunc.cpp
    AnimationPathCallback.cpp
    AnimationPath.cpp
    AutoTransform.cpp
    AzimElevationSector.cpp
    AzimSector.cpp
    Billboard.cpp
    BlendColor.cpp
    BlendEquation.cpp
    BlendFunc.cpp
    BlinkSequence.cpp
    Camera.cpp
    CameraView.cpp
    ClipNode.cpp
    ClipPlane.cpp
    ClusterCullingCallback.cpp
    ColorMask.cpp
    CompositeLayer.cpp
    SwitchLayer.cpp
    ConeSector.cpp
    ConvexPlanarOccluder.cpp
    ConvexPlanarPolygon.cpp
    CoordinateSystemNode.cpp
    CullFace.cpp
    DataInputStream.cpp
    DataOutputStream.cpp
    Depth.cpp
    DirectionalSector.cpp
    DOFTransform.cpp
    Drawable.cpp
    DrawArrayLengths.cpp
    DrawArrays.cpp
    DrawElementsUByte.cpp
    DrawElementsUInt.cpp
    DrawElementsUShort.cpp
    ElevationSector.cpp
    EllipsoidModel.cpp
    Exception.cpp
    Fog.cpp
    FragmentProgram.cpp
    FrontFace.cpp
    Geode.cpp
    Geometry.cpp
    Group.cpp
    HeightFieldLayer.cpp
    Image.cpp
    ImageSequence.cpp
    ImageLayer.cpp
    Impostor.cpp
    Layer.cpp
    Light.cpp
    LightModel.cpp
    LightPoint.cpp
    LightPointNode.cpp
    LightSource.cpp
    LineStipple.cpp
    LineWidth.cpp
    Locator.cpp
    LOD.cpp
    Material.cpp
    MatrixTransform.cpp
    Multisample.cpp
    MultiSwitch.cpp
    MultiTextureControl.cpp
    Node.cpp
    Object.cpp
    OccluderNode.cpp
    OcclusionQueryNode.cpp
    PagedLOD.cpp
    Point.cpp
    PointSprite.cpp
    PolygonMode.cpp
    PolygonOffset.cpp
    PositionAttitudeTransform.cpp
    PrimitiveSet.cpp
    Program.cpp
    ProxyNode.cpp
    ReaderWriterIVE.cpp
    Scissor.cpp
    Sequence.cpp
    ShadeModel.cpp
    Shader.cpp
    Shape.cpp
    ShapeDrawable.cpp
    ShapeAttributeList.cpp
    StateSet.cpp
    Stencil.cpp
    Switch.cpp
    TerrainTile.cpp
    TexEnvCombine.cpp
    TexEnv.cpp
    TexGen.cpp
    TexGenNode.cpp
    TexMat.cpp
    Text.cpp
    FadeText.cpp
    Text3D.cpp
    Texture1D.cpp
    Texture2D.cpp
    Texture3D.cpp
    Texture.cpp
    TextureCubeMap.cpp
    TextureRectangle.cpp
    Transform.cpp
    Uniform.cpp
    VertexProgram.cpp
    Viewport.cpp
    VisibilityGroup.cpp
    Effect.cpp
    AnisotropicLighting.cpp
    BumpMapping.cpp
    Cartoon.cpp
    Scribe.cpp
    SpecularHighlights.cpp
)
SET(TARGET_H
    AlphaFunc.h
    AnimationPathCallback.h
    AnimationPath.h
    AutoTransform.h
    AzimElevationSector.h
    AzimSector.h
    Billboard.h
    BlendColor.h
    BlendFunc.h
    BlinkSequence.h
    Camera.h
    CameraView.h
    ClipNode.h
    ClipPlane.h
    ClusterCullingCallback.h
    ColorMask.h
    CompositeLayer.h
    SwitchLayer.h
    ConeSector.h
    ConvexPlanarOccluder.h
    ConvexPlanarPolygon.h
    CoordinateSystemNode.h
    CullFace.h
    DataInputStream.h
    DataOutputStream.h
    DataTypeSize.h
    Depth.h
    DirectionalSector.h
    DOFTransform.h
    Drawable.h
    DrawArrayLengths.h
    DrawArrays.h
    DrawElementsUByte.h
    DrawElementsUInt.h
    DrawElementsUShort.h
    ElevationSector.h
    EllipsoidModel.h
    Exception.h
    Fog.h
    FragmentProgram.h
    FrontFace.h
    Geode.h
    Geometry.h
    Group.h
    HeightFieldLayer.h
    Image.h
    ImageSequence.h
    ImageLayer.h
    Impostor.h
    IveVersion.h
    Layer.h
    Light.h
    LightModel.h
    LightPoint.h
    LightPointNode.h
    LightSource.h
    LineStipple.h
    LineWidth.h
    Locator.h
    LOD.h
    Material.h
    MatrixTransform.h
    MultiSwitch.h
    MultiTextureControl.h
    Node.h
    Object.h
    OccluderNode.h
    OcclusionQueryNode.h
    PagedLOD.h
    Point.h
    PointSprite.h
    PolygonMode.h
    PolygonOffset.h
    PositionAttitudeTransform.h
    PrimitiveSet.h
    Program.h
    ProxyNode.h
    ReadWrite.h
    Scissor.h
    Sequence.h
    ShadeModel.h
    Shader.h
    ShapeDrawable.h
    Shape.h
    ShapeAttributeList.h
    StateSet.h
    Stencil.h
    Switch.h
    TerrainTile.h
    TexEnvCombine.h
    TexEnv.h
    TexGen.h
    TexGenNode.h
    TexMat.h
    Text.h
    FadeText.h
    Text3D.h
    Texture1D.h
    Texture2D.h
    Texture3D.h
    TextureCubeMap.h
    Texture.h
    TextureRectangle.h
    Transform.h
    Uniform.h
    VertexProgram.h
    Viewport.h
    VisibilityGroup.h
    Effect.h
    AnisotropicLighting.h
    BumpMapping.h
    Cartoon.h
    Scribe.h
    SpecularHighlights.h
)
SET(TARGET_ADDED_LIBRARIES osgSim osgFX osgText osgTerrain)

IF(ZLIB_FOUND)
    SET(TARGET_LIBRARIES_VARS ZLIB_LIBRARY)
ENDIF(ZLIB_FOUND)

#### end var setup  ###
SETUP_PLUGIN(ive)
