
# we need to make sure these come before anything like /usr/incliude so we get the right .mod file
include_directories(BEFORE   ${CMAKE_CURRENT_BINARY_DIR} ../PottF/include ${METVIEW_STANDARD_INCLUDES})

ecbuild_add_executable( TARGET       Spectra
                        SOURCES      Spectra.cc Spectra.h spectra.F specpro.F specgraph.F speccont.F
                        DEFINITIONS  ${METVIEW_EXTRA_DEFINITIONS}
                        #INCLUDES      ${METVIEW_STANDARD_INCLUDES}
                        LIBS         ${STANDARD_METVIEW_LIBS} ${METVIEW_MACRO_API_F90_LIB} ${METVIEW_MACRO_API_C_LIB} ${GRIB_API_LIBRARIES}
                      )

metview_module_files(ETC_FILES ObjectSpec.Spectra
    SpectraDef
    SpectraRules
    XPM_FILES SPECTRA.xpm
)
