"Fossies" - the Fresh Open Source Software Archive

Member "fimex-1.4.2/src/CMakeLists.txt" (6 Jan 2020, 12382 Bytes) of package /linux/privat/fimex-1.4.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "CMakeLists.txt": 1.4.1_vs_1.4.2.

    1 
    2 SET(libfimex_INCLUDE_DIRECTORIES
    3   ${PC_INCLUDE_DIRS}
    4   ${grib_api_INC_DIR}
    5   ${libxml2_INC_DIR}
    6   ${netcdf_INC_DIR}
    7   ${proj_INC_DIR}
    8   ${udunits2_INC_DIR}
    9   ${ECCODES_INCLUDE_DIRS}
   10   ${date_INC_DIR}
   11 )
   12 
   13 SET(libfimex_COMPILE_OPTIONS
   14   ${PC_CFLAGS_OTHER}
   15   )
   16 SET(FIMEX_DATADIR "${CMAKE_INSTALL_FULL_DATADIR}/fimex${MINUS_FIMEX_VERSION}")
   17 LINK_DIRECTORIES(${PC_LIBRARY_DIRS})
   18 
   19 SET(INCF "${CMAKE_SOURCE_DIR}/include/fimex")
   20 
   21 SET(libfimex_SOURCES
   22   c_fimex.cc
   23   ${INCF}/c_fimex.h
   24   C_CDMReader.cc
   25   ${INCF}/C_CDMReader.h
   26   CachedInterpolation.cc
   27   ${INCF}/CachedInterpolation.h
   28   CachedForwardInterpolation.cc
   29   CachedForwardInterpolation.h
   30   CachedVectorReprojection.cc
   31   ${INCF}/CachedVectorReprojection.h
   32   CDM.cc
   33   ${INCF}/CDM.h
   34   CDMAttribute.cc
   35   ${INCF}/CDMAttribute.h
   36   CDMconstants.cc
   37   ${INCF}/CDMconstants.h
   38   CDMDimension.cc
   39   ${INCF}/CDMDimension.h
   40   CDMDataType.cc
   41   ${INCF}/CDMDataType.h
   42   CDMExtractor.cc
   43   ${INCF}/CDMExtractor.h
   44   CDMFileReaderFactory.cc
   45   ${INCF}/CDMFileReaderFactory.h
   46   CDMInterpolator.cc
   47   ${INCF}/CDMInterpolator.h
   48   CDMNamedEntity.cc
   49   ${INCF}/CDMNamedEntity.h
   50   CDMMergeUtils.cc
   51   CDMMergeUtils.h
   52   CDMBorderSmoothing.cc
   53   ${INCF}/CDMBorderSmoothing.h
   54   CDMBorderSmoothing_Linear.cc
   55   ${INCF}/CDMBorderSmoothing_Linear.h
   56   CDMOverlay.cc
   57   ${INCF}/CDMOverlay.h
   58   CDMMerger.cc
   59   ${INCF}/CDMMerger.h
   60   CDMPressureConversions.cc
   61   ${INCF}/CDMPressureConversions.h
   62   CDMProcessor.cc
   63   ${INCF}/CDMProcessor.h
   64   CDMQualityExtractor.cc
   65   ${INCF}/CDMQualityExtractor.h
   66   CDMReader.cc
   67   ${INCF}/CDMReader.h
   68   CDMReaderUtils.cc
   69   ${INCF}/CDMReaderUtils.h
   70   CDMReaderWriter.cc
   71   ${INCF}/CDMReaderWriter.h
   72   CDMTimeInterpolator.cc
   73   ${INCF}/CDMTimeInterpolator.h
   74   CDMVariable.cc
   75   ${INCF}/CDMVariable.h
   76   CDMVerticalInterpolator.cc
   77   ${INCF}/CDMVerticalInterpolator.h
   78   CDMWriter.cc
   79   ${INCF}/CDMWriter.h
   80   CDM_XMLConfigHelper.cc
   81   CDM_XMLConfigHelper.h
   82   CoordinateSystemSliceBuilder.cc
   83   ${INCF}/CoordinateSystemSliceBuilder.h
   84   Data.cc
   85   ${INCF}/Data.h
   86   DataImpl.h
   87   DataIndex.cc
   88   ${INCF}/DataIndex.h
   89   AggregationReader.cc
   90   ${INCF}/AggregationReader.h
   91   ArrayLoop.cc
   92   ${INCF}/ArrayLoop.h
   93   FillWriter.cc
   94   ${INCF}/FillWriter.h
   95   FimexTime.cc
   96   ${INCF}/FimexTime.h
   97   GridDefinition.cc
   98   ${INCF}/GridDefinition.h
   99   IndexedData.cc
  100   ${INCF}/IndexedData.h
  101   IoFactory.cc
  102   ${INCF}/IoFactory.h
  103   Logger.cc
  104   ${INCF}/Logger.h
  105   Log4cppLogger.cc
  106   Log4cppLogger.h
  107   MutexLock.h
  108   NativeData.cc
  109   NativeData.h
  110   NcmlCDMReader.cc
  111   ${INCF}/NcmlCDMReader.h
  112   NcmlIoFactory.cc
  113   NcmlIoFactory.h
  114   NcmlAggregationReader.cc
  115   NcmlAggregationReader.h
  116   Null_CDMWriter.cc
  117   ${INCF}/Null_CDMWriter.h
  118   NullIoFactory.cc
  119   NullIoFactory.h
  120   RecursiveSliceCopy.h
  121   ReplaceStringObject.cc
  122   ${INCF}/ReplaceStringObject.h
  123   ReplaceStringTimeObject.cc
  124   ${INCF}/ReplaceStringTimeObject.h
  125   SpatialAxisSpec.cc
  126   ${INCF}/SpatialAxisSpec.h
  127   SliceBuilder.cc
  128   ${INCF}/SliceBuilder.h
  129   StringData.cc
  130   StringData.h
  131   TimeUnit.cc
  132   ${INCF}/TimeUnit.h
  133   TimeUtils.cc
  134   ${INCF}/TimeUtils.h
  135   TimeSpec.cc
  136   ${INCF}/TimeSpec.h
  137   Units.cc
  138   ${INCF}/Units.h
  139   ${INCF}/UnitsException.h
  140   String2Type.cc
  141   ${INCF}/String2Type.h
  142   Type2String.cc
  143   ${INCF}/Type2String.h
  144   ${INCF}/TokenizeDotted.h
  145   ${INCF}/FindNeighborElements.h
  146   StringUtils.cc
  147   ${INCF}/StringUtils.h
  148   MathUtils.cc
  149   ${INCF}/MathUtils.h
  150   FileUtils.cc
  151   ${INCF}/FileUtils.h
  152   ${INCF}/DataUtils.h
  153   ${INCF}/min_max.h
  154   XMLDoc.cc
  155   ${INCF}/XMLDoc.h
  156   ${INCF}/XMLInput.h
  157   ${INCF}/XMLInputDoc.h
  158   XMLInputFile.cc
  159   ${INCF}/XMLInputFile.h
  160   XMLInputString.cc
  161   ${INCF}/XMLInputString.h
  162   XMLUtils.cc
  163   ${INCF}/XMLUtils.h
  164 
  165   coordSys/CoordinateSystem.cc
  166   ${INCF}/coordSys/CoordinateSystem.h
  167   coordSys/CoordinateAxis.cc
  168   ${INCF}/coordSys/CoordinateAxis.h
  169   coordSys/CoordSysImpl.h
  170   coordSys/CoordSysUtils.cc
  171   coordSys/CoordSysUtils.h
  172   coordSys/CF1_xCoordSysBuilder.cc
  173   coordSys/CF1_xCoordSysBuilder.h
  174   coordSys/WRFCoordSysBuilder.cc
  175   coordSys/WRFCoordSysBuilder.h
  176   coordSys/Projection.cc
  177   ${INCF}/coordSys/Projection.h
  178   coordSys/ProjectionImpl.cc
  179   ${INCF}/coordSys/ProjectionImpl.h
  180   coordSys/AlbersConicalEqualAreaProjection.cc
  181   ${INCF}/coordSys/AlbersConicalEqualAreaProjection.h
  182   coordSys/AzimuthalEquidistantProjection.cc
  183   ${INCF}/coordSys/AzimuthalEquidistantProjection.h
  184   coordSys/GeostationaryProjection.cc
  185   ${INCF}/coordSys/GeostationaryProjection.h
  186   coordSys/LambertAzimuthalEqualAreaProjection.cc
  187   ${INCF}/coordSys/LambertAzimuthalEqualAreaProjection.h
  188   coordSys/LambertConformalConicProjection.cc
  189   ${INCF}/coordSys/LambertConformalConicProjection.h
  190   coordSys/LambertCylindricalEqualAreaProjection.cc
  191   ${INCF}/coordSys/LambertCylindricalEqualAreaProjection.h
  192   coordSys/LatitudeLongitudeProjection.cc
  193   ${INCF}/coordSys/LatitudeLongitudeProjection.h
  194   coordSys/MercatorProjection.cc
  195   ${INCF}/coordSys/MercatorProjection.h
  196   coordSys/ObliqueMercatorProjection.cc
  197   ${INCF}/coordSys/ObliqueMercatorProjection.h
  198   coordSys/OrthographicProjection.cc
  199   ${INCF}/coordSys/OrthographicProjection.h
  200   coordSys/PolarStereographicProjection.cc
  201   ${INCF}/coordSys/PolarStereographicProjection.h
  202   coordSys/RotatedLatitudeLongitudeProjection.cc
  203   ${INCF}/coordSys/RotatedLatitudeLongitudeProjection.h
  204   coordSys/StereographicProjection.cc
  205   ${INCF}/coordSys/SinusoidalProjection.h
  206   coordSys/SinusoidalProjection.cc
  207   ${INCF}/coordSys/StereographicProjection.h
  208   coordSys/TransverseMercatorProjection.cc
  209   ${INCF}/coordSys/TransverseMercatorProjection.h
  210   coordSys/VerticalPerspectiveProjection.cc
  211   ${INCF}/coordSys/VerticalPerspectiveProjection.h
  212   coordSys/UnknownToFgdcProjection.cc
  213   ${INCF}/coordSys/UnknownToFgdcProjection.h
  214 
  215   coordSys/verticalTransform/AltitudeHeightConverter.cc
  216   ${INCF}/coordSys/verticalTransform/AltitudeHeightConverter.h
  217   coordSys/verticalTransform/AltitudeStandardToPressureConverter.cc
  218   ${INCF}/coordSys/verticalTransform/AltitudeStandardToPressureConverter.h
  219   coordSys/verticalTransform/AtmosphereSigma.cc
  220   ${INCF}/coordSys/verticalTransform/AtmosphereSigma.h
  221   coordSys/verticalTransform/Depth.cc
  222   ${INCF}/coordSys/verticalTransform/Depth.h
  223   coordSys/verticalTransform/GeopotentialToAltitudeConverter.cc
  224   ${INCF}/coordSys/verticalTransform/GeopotentialToAltitudeConverter.h
  225   coordSys/verticalTransform/Height.cc
  226   ${INCF}/coordSys/verticalTransform/Height.h
  227   coordSys/verticalTransform/HybridSigmaApToPressureConverter.cc
  228   ${INCF}/coordSys/verticalTransform/HybridSigmaApToPressureConverter.h
  229   coordSys/verticalTransform/HybridSigmaPressure1.cc
  230   ${INCF}/coordSys/verticalTransform/HybridSigmaPressure1.h
  231   coordSys/verticalTransform/HybridSigmaPressure2.cc
  232   ${INCF}/coordSys/verticalTransform/HybridSigmaPressure2.h
  233   coordSys/verticalTransform/HybridSigmaToPressureConverter.cc
  234   ${INCF}/coordSys/verticalTransform/HybridSigmaToPressureConverter.h
  235   coordSys/verticalTransform/IdentityConverter.cc
  236   ${INCF}/coordSys/verticalTransform/IdentityConverter.h
  237   coordSys/verticalTransform/LnPressure.cc
  238   ${INCF}/coordSys/verticalTransform/LnPressure.h
  239   coordSys/verticalTransform/LnPressureToPressureConverter.cc
  240   ${INCF}/coordSys/verticalTransform/LnPressureToPressureConverter.h
  241   coordSys/verticalTransform/OceanSCoordinateGToDepthConverter.cc
  242   ${INCF}/coordSys/verticalTransform/OceanSCoordinateGToDepthConverter.h
  243   coordSys/verticalTransform/OceanSG1.cc
  244   ${INCF}/coordSys/verticalTransform/OceanSG1.h
  245   coordSys/verticalTransform/OceanSG2.cc
  246   ${INCF}/coordSys/verticalTransform/OceanSG2.h
  247   coordSys/verticalTransform/Pressure.cc
  248   ${INCF}/coordSys/verticalTransform/Pressure.h
  249   coordSys/verticalTransform/PressureIntegrationToAltitudeConverter.cc
  250   ${INCF}/coordSys/verticalTransform/PressureIntegrationToAltitudeConverter.h
  251   coordSys/verticalTransform/PressureToStandardAltitudeConverter.cc
  252   ${INCF}/coordSys/verticalTransform/PressureToStandardAltitudeConverter.h
  253   coordSys/verticalTransform/SigmaToPressureConverter.cc
  254   ${INCF}/coordSys/verticalTransform/SigmaToPressureConverter.h
  255   coordSys/verticalTransform/ToVLevelConverter.cc
  256   ${INCF}/coordSys/verticalTransform/ToVLevelConverter.h
  257   coordSys/verticalTransform/ToVLevelConverterAdapter.cc
  258   ${INCF}/coordSys/verticalTransform/ToVLevelConverterAdapter.h
  259   coordSys/verticalTransform/VerticalConverter.cc
  260   ${INCF}/coordSys/verticalTransform/VerticalConverter.h
  261   coordSys/verticalTransform/VerticalTransformation.cc
  262   ${INCF}/coordSys/verticalTransform/VerticalTransformation.h
  263   coordSys/verticalTransform/VerticalTransformationUtils.cc
  264   ${INCF}/coordSys/verticalTransform/VerticalTransformationUtils.h
  265 
  266   interpolation.c
  267   ${INCF}/interpolation.h
  268   mifi_mpi.c
  269   ${INCF}/mifi_mpi.h
  270   ThreadPool.c
  271   ${INCF}/ThreadPool.h
  272   vertical_coordinate_transformations.c
  273   ${INCF}/vertical_coordinate_transformations.h
  274 
  275   leap_iterator.h
  276 )
  277 
  278 IF(ENABLE_LOG4CPP)
  279   SET(HAVE_LOG4CPP 1)
  280 ENDIF()
  281 
  282 IF(MPI_CXX_FOUND)
  283   SET(HAVE_MPI 1)
  284 ENDIF()
  285 
  286 IF(ENABLE_NETCDF)
  287   SET(HAVE_NETCDF_H 1)
  288 
  289   SET(libfimex_netcdf_SOURCES
  290     NetCDF_CDMReader.cc
  291     ${INCF}/NetCDF_CDMReader.h
  292     NetCDF_CDMWriter.cc
  293     ${INCF}/NetCDF_CDMWriter.h
  294     NetCDF_Utils.cc
  295     NetCDF_Utils.h
  296     NetCDFIoFactory.cc
  297     NetCDFIoFactory.h
  298   )
  299 ENDIF(ENABLE_NETCDF)
  300 
  301 IF((ENABLE_GRIBAPI) OR (ENABLE_ECCODES))
  302   SET(HAVE_GRIB_API_H 1)
  303 
  304   IF(ENABLE_GRIBAPI)
  305     LIST(APPEND libfimex_INCLUDE_DIRECTORIES ${GRIBAPI_INC_DIR})
  306   ENDIF()
  307 
  308   SET(libfimex_grib_SOURCES
  309     GribApiCDMWriter.cc
  310     ${INCF}/GribApiCDMWriter.h
  311     GribApiCDMWriter_ImplAbstract.cc
  312     GribApiCDMWriter_ImplAbstract.h
  313     GribApiCDMWriter_Impl1.cc
  314     GribApiCDMWriter_Impl1.h
  315     GribApiCDMWriter_Impl2.cc
  316     GribApiCDMWriter_Impl2.h
  317     GribCDMReader.cc
  318     ${INCF}/GribCDMReader.h
  319     GribFileIndex.cc
  320     ${INCF}/GribFileIndex.h
  321     GribUtils.cc
  322     ${INCF}/GribUtils.h
  323     GribIoFactory.cc
  324     GribIoFactory.h
  325     )
  326 ENDIF((ENABLE_GRIBAPI) OR (ENABLE_ECCODES))
  327 
  328 IF(ENABLE_FELT)
  329   ADD_SUBDIRECTORY(felt)
  330   SET(FELT_LIBRARY libfelt)
  331 
  332   SET(HAVE_FELT 1)
  333 
  334   SET(libfimex_felt_SOURCES
  335     Felt_Array2.cc
  336     FeltCDMReader2.cc
  337     Felt_File2.cc
  338     FeltParameters.cc
  339 
  340     Felt_Array2.h
  341     FeltCDMReader2.h
  342     Felt_File_Error.h
  343     Felt_File2.h
  344     FeltParameters.h
  345 
  346     FeltIoFactory.cc
  347     FeltIoFactory.h
  348     )
  349 
  350 ENDIF(ENABLE_FELT)
  351 
  352 if(ENABLE_METGM)
  353   SET(HAVE_METGM_H 1)
  354 
  355   SET(libfimex_metgm_SOURCES
  356     MetGmCDMWriter.cc
  357     ${INCF}/MetGmCDMWriter.h
  358     MetGmCDMReader.cc
  359     ${INCF}/MetGmCDMReader.h
  360     MetGmIoFactory.cc
  361     MetGmIoFactory.h
  362 
  363     metgm/MetGmCDMReaderImpl.cc
  364     metgm/MetGmCDMReaderImpl.h
  365     metgm/MetGmCDMReaderSlicedImpl.cc
  366     metgm/MetGmCDMReaderSlicedImpl.h
  367     metgm/MetGmCDMVariableProfile.cc
  368     metgm/MetGmCDMVariableProfile.h
  369     metgm/MetGmCDMWriterImpl.cc
  370     metgm/MetGmCDMWriterImpl.h
  371     metgm/MetGmCDMWriterSlicedImpl.cc
  372     metgm/MetGmCDMWriterSlicedImpl.h
  373     metgm/MetGmCommentAttributeParser.cc
  374     metgm/MetGmCommentAttributeParser.h
  375     metgm/MetGmConfigurationMappings.cc
  376     metgm/MetGmConfigurationMappings.h
  377     metgm/MetGmDimensionsTag.cc
  378     metgm/MetGmDimensionsTag.h
  379     metgm/MetGmFileHandlePtr.h
  380     metgm/MetGmGroup1Ptr.cc
  381     metgm/MetGmGroup1Ptr.h
  382     metgm/MetGmGroup2Ptr.cc
  383     metgm/MetGmGroup2Ptr.h
  384     metgm/MetGmGroup3Ptr.cc
  385     metgm/MetGmGroup3Ptr.h
  386     metgm/MetGmGroup5Ptr.cc
  387     metgm/MetGmGroup5Ptr.h
  388     metgm/MetGmHandlePtr.cc
  389     metgm/MetGmHandlePtr.h
  390     metgm/MetGmHorizontalTag.cc
  391     metgm/MetGmHorizontalTag.h
  392     metgm/MetGmTags.cc
  393     metgm/MetGmTags.h
  394     metgm/MetGmTimeTag.cc
  395     metgm/MetGmTimeTag.h
  396     metgm/MetGmUtils.cc
  397     metgm/MetGmUtils.h
  398     metgm/MetGmVersion.cc
  399     metgm/MetGmVersion.h
  400     metgm/MetGmVerticalTag.cc
  401     metgm/MetGmVerticalTag.h
  402   )
  403 ENDIF(ENABLE_METGM)
  404 
  405 if(ENABLE_PRORADXML)
  406   SET(HAVE_PRORADXML 1)
  407 
  408   SET(libfimex_proradxml_SOURCES
  409     ProradXMLCDMReader.cc
  410     ProradXMLCDMReader.h
  411     ProradXMLIoFactory.cc
  412     ProradXMLIoFactory.h
  413     )
  414 ENDIF(ENABLE_PRORADXML)
  415 
  416 CONFIGURE_FILE(fimex_config.h.in fimex_config.h)
  417 
  418 SET(libfimex_ALL_SOURCES
  419   ${libfimex_SOURCES}
  420   ${libfimex_netcdf_SOURCES}
  421   ${libfimex_grib_SOURCES}
  422   ${libfimex_felt_SOURCES}
  423   ${libfimex_metgm_SOURCES}
  424   ${libfimex_proradxml_SOURCES}
  425 )
  426 
  427 SET(libfimex_LIBS
  428   ${FELT_LIBRARY}
  429   ${PC_LIBRARIES}
  430   ${grib_api_LIB}
  431   ${libxml2_LIB}
  432   ${netcdf_LIB}
  433   ${proj_LIB}
  434   ${udunits2_LIB}
  435   ${eccodes_LIB}
  436   ${date_LIB}
  437 )
  438 
  439 FIMEX_ADD_LIBRARY(fimex "${libfimex_ALL_SOURCES}" "${libfimex_LIBS}" "${libfimex_INCLUDE_DIRECTORIES}" "${libfimex_COMPILE_OPTIONS}")
  440 
  441 ADD_SUBDIRECTORY(binSrc)