include (SimGearComponent)

set(HEADERS 
    GroundLightManager.hxx
    LineFeatureBin.hxx
    LightBin.hxx
    ObjectInstanceBin.hxx
    ReaderWriterSPT.hxx
    ReaderWriterSTG.hxx
    SGBuildingBin.hxx
    SGDirectionalLightBin.hxx
    SGLightBin.hxx
    SGModelBin.hxx
    SGNodeTriangles.hxx
    SGOceanTile.hxx
    SGReaderWriterBTG.hxx
    SGTexturedTriangleBin.hxx
    SGTileDetailsCallback.hxx
    SGTileGeometryBin.hxx
    SGTriangleBin.hxx
    SGVasiDrawable.hxx
    SGVertexArrayBin.hxx
    TreeBin.hxx
    VPBBufferData.hxx
    VPBElevationSlice.hxx
    VPBMaterialHandler.hxx
    VPBLineFeatureRenderer.hxx
    VPBTileBounds.hxx
    VPBTechnique.hxx
    apt_signs.hxx
    obj.hxx
    pt_lights.hxx
    userdata.hxx
    )

set(SOURCES 
    GroundLightManager.cxx
    LineFeatureBin.cxx
    LightBin.cxx
    ObjectInstanceBin.cxx
    ReaderWriterSPT.cxx
    ReaderWriterSTG.cxx
    SGBuildingBin.cxx
    SGOceanTile.cxx
    SGReaderWriterBTG.cxx
    SGVasiDrawable.cxx
    TreeBin.cxx
    VPBElevationSlice.cxx
    VPBMaterialHandler.cxx
    VPBLineFeatureRenderer.cxx
    VPBTileBounds.cxx
    VPBTechnique.cxx
    apt_signs.cxx
    obj.cxx
    pt_lights.cxx
    userdata.cxx
    )

simgear_scene_component(tgdb scene/tgdb "${SOURCES}" "${HEADERS}")

if(ENABLE_TESTS)
  add_simgear_scene_autotest(BucketBoxTest BucketBoxTest.cxx)
endif(ENABLE_TESTS)
