#
# List the non-generated source files (*.h, *.cc, *.ui, *.qrc).
#
# Add and remove source files here by hand, keeping the list in alphabetical order.
# (CMake discourages 'file(GLOB)': if source files are added or removed, CMake is not
# automatically re-run, so the build would be unaware of the change.)
#
set(srcs
    AgeModelCollection.cc
    AgeModelCollection.h
    ApplicationState.cc
    ApplicationState.h
    AppLogicUtils.cc
    AppLogicUtils.h
    AssignPlateIds.cc
    AssignPlateIds.h
    CoRegistrationData.cc
    CoRegistrationData.h
    CoRegistrationLayerParams.cc
    CoRegistrationLayerParams.h
    CoRegistrationLayerProxy.cc
    CoRegistrationLayerProxy.h
    CoRegistrationLayerTask.cc
    CoRegistrationLayerTask.h
    DeformationStrain.cc
    DeformationStrain.h
    DeformationStrainRate.cc
    DeformationStrainRate.h
    DependentTopologicalSectionLayers.cc
    DependentTopologicalSectionLayers.h
    ExtractRasterFeatureProperties.cc
    ExtractRasterFeatureProperties.h
    ExtractScalarField3DFeatureProperties.cc
    ExtractScalarField3DFeatureProperties.h
    FeatureClassifier.cc
    FeatureClassifier.h
    FeatureCollectionFileIO.cc
    FeatureCollectionFileIO.h
    FeatureCollectionFileState.cc
    FeatureCollectionFileState.h
    FlowlineGeometryPopulator.cc
    FlowlineGeometryPopulator.h
    FlowlineUtils.cc
    FlowlineUtils.h
    GenerateVelocityDomainCitcoms.cc
    GenerateVelocityDomainCitcoms.h
    GenerateVelocityDomainTerra.cc
    GenerateVelocityDomainTerra.h
    GenericPartitionFeatureTask.cc
    GenericPartitionFeatureTask.h
    GeometryCookieCutter.cc
    GeometryCookieCutter.h
    GeometryFinder.cc
    GeometryFinder.h
    GeometryRotator.cc
    GeometryRotator.h
    GeometrySetter.cc
    GeometrySetter.h
    GeometryTypeFinder.cc
    GeometryTypeFinder.h
    GeometryUtils.cc
    GeometryUtils.h
    GPlatesQtMsgHandler.cc
    GPlatesQtMsgHandler.h
    HellingerModel.cc
    HellingerModel.h
    Layer.cc
    Layer.h
    LayerInputChannelName.cc
    LayerInputChannelName.h
    LayerInputChannelType.h
    LayerParams.h
    LayerParamsVisitor.h
    LayerProxy.h
    LayerProxyUtils.cc
    LayerProxyUtils.h
    LayerProxyVisitor.h
    LayerTask.h
    LayerTaskRegistry.cc
    LayerTaskRegistry.h
    LayerTaskType.cc
    LayerTaskType.h
    LogModel.cc
    LogModel.h
    LogToModelHandler.cc
    LogToModelHandler.h
    MotionPathGeometryPopulator.cc
    MotionPathGeometryPopulator.h
    MotionPathUtils.cc
    MotionPathUtils.h
    MultiPointVectorField.cc
    MultiPointVectorField.h
    NetRotationUtils.cc
    NetRotationUtils.h
    PalaeomagUtils.cc
    PalaeomagUtils.h
    PartitionFeatureTask.cc
    PartitionFeatureGeometries.cc
    PartitionFeatureGeometries.h
    PartitionFeatureTask.h
    PartitionFeatureUtils.cc
    PartitionFeatureUtils.h
    PlateBoundaryStats.cc
    PlateBoundaryStats.h
    PlateVelocityUtils.cc
    PlateVelocityUtils.h
    PropertyExtractors.cc
    PropertyExtractors.h
    RasterLayerParams.cc
    RasterLayerParams.h
    RasterLayerProxy.cc
    RasterLayerProxy.h
    RasterLayerTask.cc
    RasterLayerTask.h
    ReconstructContext.cc
    ReconstructContext.h
    ReconstructedFeatureGeometry.cc
    ReconstructedFeatureGeometry.h
    ReconstructedFeatureGeometryFinder.cc
    ReconstructedFeatureGeometryFinder.h
    ReconstructedFlowline.cc
    ReconstructedFlowline.h
    ReconstructedMotionPath.cc
    ReconstructedMotionPath.h
    ReconstructedScalarCoverage.cc
    ReconstructedScalarCoverage.h
    ReconstructedSmallCircle.cc
    ReconstructedSmallCircle.h
    ReconstructedVirtualGeomagneticPole.cc
    ReconstructedVirtualGeomagneticPole.h
    ReconstructGraph.cc
    ReconstructGraph.h
    ReconstructGraphImpl.cc
    ReconstructGraphImpl.h
    ReconstructHandle.h
    Reconstruction.cc
    Reconstruction.h
    ReconstructionFeatureProperties.cc
    ReconstructionFeatureProperties.h
    ReconstructionGeometry.h
    ReconstructionGeometryFinder.cc
    ReconstructionGeometryFinder.h
    ReconstructionGeometryUtils.cc
    ReconstructionGeometryUtils.h
    ReconstructionGeometryVisitor.cc
    ReconstructionGeometryVisitor.h
    ReconstructionGraph.h
    ReconstructionGraphBuilder.cc
    ReconstructionGraphBuilder.h
    ReconstructionGraphPopulator.cc
    ReconstructionGraphPopulator.h
    ReconstructionLayerParams.h
    ReconstructionLayerProxy.cc
    ReconstructionLayerProxy.h
    ReconstructionLayerTask.cc
    ReconstructionLayerTask.h
    ReconstructionParams.cc
    ReconstructionParams.h
    ReconstructionTree.cc
    ReconstructionTree.h
    ReconstructionTreeCreator.cc
    ReconstructionTreeCreator.h
    ReconstructLayerParams.cc
    ReconstructLayerParams.h
    ReconstructLayerProxy.cc
    ReconstructLayerProxy.h
    ReconstructLayerTask.cc
    ReconstructLayerTask.h
    ReconstructMethodByPlateId.cc
    ReconstructMethodByPlateId.h
    ReconstructMethodFiniteRotation.h
    ReconstructMethodFlowline.cc
    ReconstructMethodFlowline.h
    ReconstructMethodHalfStageRotation.cc
    ReconstructMethodHalfStageRotation.h
    ReconstructMethodInterface.cc
    ReconstructMethodInterface.h
    ReconstructMethodMotionPath.cc
    ReconstructMethodMotionPath.h
    ReconstructMethodRegistry.cc
    ReconstructMethodRegistry.h
    ReconstructMethodSmallCircle.cc
    ReconstructMethodSmallCircle.h
    ReconstructMethodType.h
    ReconstructMethodVirtualGeomagneticPole.cc
    ReconstructMethodVirtualGeomagneticPole.h
    ReconstructParams.cc
    ReconstructParams.h
    ReconstructScalarCoverageLayerParams.cc
    ReconstructScalarCoverageLayerParams.h
    ReconstructScalarCoverageLayerProxy.cc
    ReconstructScalarCoverageLayerProxy.h
    ReconstructScalarCoverageLayerTask.cc
    ReconstructScalarCoverageLayerTask.h
    ReconstructScalarCoverageParams.cc
    ReconstructScalarCoverageParams.h
    ReconstructUtils.cc
    ReconstructUtils.h
    ResolvedRaster.cc
    ResolvedRaster.h
    ResolvedScalarField3D.cc
    ResolvedScalarField3D.h
    ResolvedSubSegmentRangeInSection.cc
    ResolvedSubSegmentRangeInSection.h
    ResolvedTopologicalBoundary.cc
    ResolvedTopologicalBoundary.h
    ResolvedTopologicalGeometry.h
    ResolvedTopologicalGeometrySubSegment.cc
    ResolvedTopologicalGeometrySubSegment.h
    ResolvedTopologicalLine.cc
    ResolvedTopologicalLine.h
    ResolvedTopologicalNetwork.cc
    ResolvedTopologicalNetwork.h
    ResolvedTopologicalSection.h
    ResolvedTopologicalSharedSubSegment.cc
    ResolvedTopologicalSharedSubSegment.h
    ResolvedTopologicalSubSegmentImpl.cc
    ResolvedTopologicalSubSegmentImpl.h
    ResolvedTriangulationDelaunay2.cc
    ResolvedTriangulationDelaunay2.h
    ResolvedTriangulationNetwork.cc
    ResolvedTriangulationNetwork.h
    ResolvedTriangulationUtils.h
    ResolvedVertexSourceInfo.cc
    ResolvedVertexSourceInfo.h
    RotationUtils.cc
    RotationUtils.h
    ScalarCoverageEvolution.cc
    ScalarCoverageEvolution.h
    ScalarCoverageFeatureProperties.cc
    ScalarCoverageFeatureProperties.h
    ScalarCoverageTimeSpan.cc
    ScalarCoverageTimeSpan.h
    ScalarField3DLayerParams.cc
    ScalarField3DLayerParams.h
    ScalarField3DLayerProxy.cc
    ScalarField3DLayerProxy.h
    ScalarField3DLayerTask.cc
    ScalarField3DLayerTask.h
    SmallCircleGeometryPopulator.cc
    SmallCircleGeometryPopulator.h
    TimeSpanUtils.cc
    TimeSpanUtils.h
    TopologyGeometryResolver.cc
    TopologyGeometryResolver.h
    TopologyGeometryResolverLayerProxy.cc
    TopologyGeometryResolverLayerProxy.h
    TopologyGeometryResolverLayerTask.cc
    TopologyGeometryResolverLayerTask.h
    TopologyGeometryType.h
    TopologyInternalUtils.cc
    TopologyInternalUtils.h
    TopologyIntersections.cc
    TopologyIntersections.h
    TopologyNetworkLayerParams.h
    TopologyNetworkParams.cc
    TopologyNetworkParams.h
    TopologyNetworkResolver.cc
    TopologyNetworkResolver.h
    TopologyNetworkResolverLayerProxy.cc
    TopologyNetworkResolverLayerProxy.h
    TopologyNetworkResolverLayerTask.cc
    TopologyNetworkResolverLayerTask.h
    TopologyPointLocation.h
    TopologyReconstruct.cc
    TopologyReconstruct.h
    TopologyReconstructedFeatureGeometry.cc
    TopologyReconstructedFeatureGeometry.h
    TopologyUtils.cc
    TopologyUtils.h
    TotalReconstructionSequencePlateIdFinder.cc
    TotalReconstructionSequencePlateIdFinder.h
    TotalReconstructionSequenceRotationInserter.cc
    TotalReconstructionSequenceRotationInserter.h
    TotalReconstructionSequenceRotationInterpolater.cc
    TotalReconstructionSequenceRotationInterpolater.h
    TotalReconstructionSequenceTimePeriodFinder.cc
    TotalReconstructionSequenceTimePeriodFinder.h
    TRSUtils.cc
    TRSUtils.h
    UserPreferences.cc
    UserPreferences.h
    VelocityDeltaTime.cc
    VelocityDeltaTime.h
    VelocityFieldCalculatorLayerParams.cc
    VelocityFieldCalculatorLayerParams.h
    VelocityFieldCalculatorLayerProxy.cc
    VelocityFieldCalculatorLayerProxy.h
    VelocityFieldCalculatorLayerTask.cc
    VelocityFieldCalculatorLayerTask.h
    VelocityParams.cc
    VelocityParams.h
    VelocityUnits.h
    VgpPartitionFeatureTask.cc
    VgpPartitionFeatureTask.h
)

# GPlates-only sources: excluded from the pygplates module, whose source list is the
# include closure of the pyGPlates API (see "cmake/pygplates_source_closure.py"; the
# pygplates-source-closure test fails if this list drifts from that closure).
# Keep ".h"/".cc" pairs together: AUTOMOC mocs any Q_OBJECT header listed in the
# module's sources, and a moc'ed header whose ".cc" is excluded fails at link time.
set(gplates_only_srcs
    AgeModelCollection.cc
    AgeModelCollection.h
    ApplicationState.cc
    ApplicationState.h
    AssignPlateIds.cc
    AssignPlateIds.h
    CoRegistrationData.cc
    CoRegistrationData.h
    CoRegistrationLayerParams.cc
    CoRegistrationLayerParams.h
    CoRegistrationLayerProxy.cc
    CoRegistrationLayerProxy.h
    CoRegistrationLayerTask.cc
    CoRegistrationLayerTask.h
    DependentTopologicalSectionLayers.cc
    DependentTopologicalSectionLayers.h
    FeatureClassifier.cc
    FeatureClassifier.h
    FeatureCollectionFileIO.cc
    FeatureCollectionFileIO.h
    FeatureCollectionFileState.cc
    FeatureCollectionFileState.h
    GenerateVelocityDomainCitcoms.cc
    GenerateVelocityDomainCitcoms.h
    GenerateVelocityDomainTerra.cc
    GenerateVelocityDomainTerra.h
    GenericPartitionFeatureTask.cc
    GenericPartitionFeatureTask.h
    GeometryRotator.cc
    GeometryRotator.h
    GPlatesQtMsgHandler.cc
    GPlatesQtMsgHandler.h
    HellingerModel.cc
    HellingerModel.h
    Layer.cc
    Layer.h
    LayerInputChannelName.cc
    LayerInputChannelName.h
    LayerInputChannelType.h
    LayerParams.h
    LayerParamsVisitor.h
    LayerProxy.h
    LayerProxyUtils.cc
    LayerProxyUtils.h
    LayerProxyVisitor.h
    LayerTask.h
    LayerTaskRegistry.cc
    LayerTaskRegistry.h
    LayerTaskType.cc
    LayerTaskType.h
    LogModel.cc
    LogModel.h
    LogToModelHandler.cc
    LogToModelHandler.h
    PalaeomagUtils.cc
    PalaeomagUtils.h
    PartitionFeatureTask.cc
    PartitionFeatureTask.h
    PartitionFeatureUtils.cc
    PartitionFeatureUtils.h
    PropertyExtractors.cc
    PropertyExtractors.h
    RasterLayerParams.cc
    RasterLayerParams.h
    RasterLayerProxy.cc
    RasterLayerProxy.h
    RasterLayerTask.cc
    RasterLayerTask.h
    ReconstructGraph.cc
    ReconstructGraph.h
    ReconstructGraphImpl.cc
    ReconstructGraphImpl.h
    Reconstruction.cc
    Reconstruction.h
    ReconstructionLayerParams.h
    ReconstructionLayerProxy.cc
    ReconstructionLayerProxy.h
    ReconstructionLayerTask.cc
    ReconstructionLayerTask.h
    ReconstructionParams.cc
    ReconstructionParams.h
    ReconstructLayerParams.cc
    ReconstructLayerParams.h
    ReconstructLayerProxy.cc
    ReconstructLayerProxy.h
    ReconstructLayerTask.cc
    ReconstructLayerTask.h
    ReconstructScalarCoverageLayerParams.cc
    ReconstructScalarCoverageLayerParams.h
    ReconstructScalarCoverageLayerProxy.cc
    ReconstructScalarCoverageLayerProxy.h
    ReconstructScalarCoverageLayerTask.cc
    ReconstructScalarCoverageLayerTask.h
    ReconstructScalarCoverageParams.cc
    ReconstructScalarCoverageParams.h
    ResolvedRaster.cc
    ResolvedRaster.h
    ResolvedScalarField3D.cc
    ResolvedScalarField3D.h
    ScalarField3DLayerParams.cc
    ScalarField3DLayerParams.h
    ScalarField3DLayerProxy.cc
    ScalarField3DLayerProxy.h
    ScalarField3DLayerTask.cc
    ScalarField3DLayerTask.h
    TopologyGeometryResolverLayerProxy.cc
    TopologyGeometryResolverLayerProxy.h
    TopologyGeometryResolverLayerTask.cc
    TopologyGeometryResolverLayerTask.h
    TopologyNetworkLayerParams.h
    TopologyNetworkResolverLayerProxy.cc
    TopologyNetworkResolverLayerProxy.h
    TopologyNetworkResolverLayerTask.cc
    TopologyNetworkResolverLayerTask.h
    TotalReconstructionSequenceRotationInserter.cc
    TotalReconstructionSequenceRotationInserter.h
    TotalReconstructionSequenceRotationInterpolater.cc
    TotalReconstructionSequenceRotationInterpolater.h
    TotalReconstructionSequenceTimePeriodFinder.cc
    TotalReconstructionSequenceTimePeriodFinder.h
    TRSUtils.cc
    TRSUtils.h
    UserPreferences.cc
    UserPreferences.h
    VelocityFieldCalculatorLayerParams.cc
    VelocityFieldCalculatorLayerParams.h
    VelocityFieldCalculatorLayerProxy.cc
    VelocityFieldCalculatorLayerProxy.h
    VelocityFieldCalculatorLayerTask.cc
    VelocityFieldCalculatorLayerTask.h
    VelocityParams.cc
    VelocityParams.h
    VgpPartitionFeatureTask.cc
    VgpPartitionFeatureTask.h
)
# Guard against stale entries (eg, after a file rename).
foreach(gplates_only_src ${gplates_only_srcs})
    if (NOT gplates_only_src IN_LIST srcs)
        message(FATAL_ERROR "'${gplates_only_src}' is not in srcs")
    endif()
endforeach()
if (NOT TARGET gplates-lib)
    list(REMOVE_ITEM srcs ${gplates_only_srcs})
endif()

# Add the source files to the gplates static library (or pygplates extension module).
target_sources(${SOURCE_TARGET} PRIVATE ${srcs})
