### gRPC libraries and include files are provided with the casatools
### module to ensure compatibility
GRPC_LIBS = $$system(python3 -m casatools --grpc-link)
GRPC_INCLUDE_raw = $$system(python3 -m casatools --grpc-compile)
GRPC_INCLUDE = $$replace(GRPC_INCLUDE_raw,-I,)
GRPC_PATH = $$system(python3 -m casatools --grpc-libpath)
### without this qmake will generate all of the MOC bindings for
### without this qmake will generate all of the MOC bindings for
### Qt classes that are #ifdefed out...
MOC_DIR = build/lib.$$QMAKE_HOST.version/moc
include ( $$[QT_INSTALL_DATA]/mkspecs/features/qwt.prf )
#include ( /usr/lib64/qt5/mkspecs/features/qwt.prf )
#INCLUDEPATH += /usr/include/qt5
INCLUDEPATH += $$GRPC_INCLUDE
INCLUDEPATH += /opt/casa/02/include /usr/include/cfitsio /opt/casa/02/include/qwt
LIBDIR_LIST = /opt/casa/02/lib /opt/rh/devtoolset-4/root/usr/lib/gcc/x86_64-redhat-linux/5.3.1 /opt/local/lib/gcc5
LIBDIR_LIST = /opt/casa/02/lib /opt/rh/devtoolset-4/root/usr/lib/gcc/x86_64-redhat-linux/5.3.1 /opt/casa/02/lib/gcc5
### -lelf is needed simply to cause it to be located from within the casaviewer.app
### tree at runtime by the runtime loader... because whatever library depends upon
### libelf.so.1 does not include a RPATH/RUNPATH
LIBS += -lsqlite3 -lqwt $$GRPC_LIBS -lpgsbox -lcpgplot -lpgplot -lwcs -lcfitsio -llapack -lgsl -lgslcblas -lblas -lgfortran -lelf
QMAKE_CXXFLAGS += -DCASATOOLS -DCASADATA=\\\"/home/casa/data/trunk\\\"
MAC_THIRD_PARTY_PATH = "/opt/local"
MAC_THIRD_PARTY_PATH = "/opt/casa/02"
message("Found /opt/casa/02")
MAC_THIRD_PARTY_PATH = "/opt/casa/03"
message("Found /opt/casa/03")
include ( $$[QT_INSTALL_DATA]/mkspecs/features/qwt.prf )
INCLUDEPATH += $$GRPC_INCLUDE
INCLUDEPATH += $$MAC_THIRD_PARTY_PATH/include
INCLUDEPATH += $$MAC_THIRD_PARTY_PATH/include
LIBDIR_LIST = $$MAC_THIRD_PARTY_PATH/lib $$MAC_THIRD_PARTY_PATH/lib/gcc5
LIBS += -lsqlite3 $$GRPC_LIBS -lpgsbox_nox -lcpgplot_nox -lpgplot_nox -lwcs -lcfitsio -llapack -lblas -lgsl -lgfortran
QMAKE_CXXFLAGS += -DCASATOOLS
OBJECTS_DIR = build/lib.$$QMAKE_HOST.version/objs
RCC_DIR = build/lib.$$QMAKE_HOST.version/rcc
UI_DIR = build/include.$$QMAKE_HOST.version/ui
CONFIG += object_parallel_to_source
QMAKE_CXXFLAGS += -std=c++11 -DUseCasacoreNamespace -DNO_CRASH_REPORTER -DAIPS_LINUX -DCASA6
QT += xml widgets printsupport
exists($$p):LIBS += -L$$p
exists($$p):RPATH_LIBS += $$p
lex_lcc.output = $$YACC_DIR/${QMAKE_FILE_BASE}.lcc
lex_lcc.dependency_type = TYPE_C
QMAKE_EXTRA_COMPILERS += lex_lcc
PRE_TARGETDEPS += compiler_lex_lcc_make_all
PROTO_IMG = casa-source/casa5/code/display/protos/img.proto
$$system(python3 -m casatools --proto-registrar) \
$$system(python3 -m casatools --proto-shutdown) \
$$system(python3 -m casatools --proto-ping) \
PROTOC = $$system(python3 -m casatools --grpc-protocpp)
PROTOPY = $$system(python3 -m casatools --grpc-protopy)
PROTO_SHUTDOWN = $$system(python3 -m casatools --proto-shutdown)
PROTO_PING = $$system(python3 -m casatools --proto-ping)
include(grpc_protobuf.pri)
FORTRAN_SOURCE = casa-source/casatools/casacore/scimath_f/fftpak.f casa-source/casatools/casacore/scimath_f/dfftpak.f
YACC_FILES = casa-source/casatools/casacore/tables/TaQL/RecordGram.yy \
casa-source/casatools/casacore/casa/Json/JsonGram.yy \
casa-source/casatools/casacore/tables/TaQL/TableGram.yy \
casa-source/casa5/code/display/QtViewer/QtDataManager.cc \
casa-source/casa5/code/display/QtViewer/QtDataOptionsPanel.cc \
casa-source/casa5/code/display/QtViewer/QtDisplayData.cc \
casa-source/casa5/code/display/QtViewer/QtDisplayPanel.cc \
casa-source/casa5/code/display/QtViewer/QtDisplayPanelGui.cc \
casa-source/casa5/code/display/QtViewer/QtExportBrowser.cc \
casa-source/casa5/code/display/QtViewer/QtExportManager.cc \
casa-source/casa5/code/display/QtViewer/QtMouseToolBar.cc \
casa-source/casa5/code/display/QtViewer/QtMouseTools.cc \
casa-source/casa5/code/display/QtViewer/QtMouseToolState.cc \
casa-source/casa5/code/display/QtViewer/QtOldMouseTools.cc \
casa-source/casa5/code/display/QtViewer/QtOldMouseTools.cc \
casa-source/casa5/code/display/QtViewer/QtOptions.cc \
casa-source/casa5/code/display/QtViewer/QtPCColorTable.cc \
casa-source/casa5/code/display/QtViewer/QtPixelCanvas.cc \
casa-source/casa5/code/display/QtViewer/QtRegionManager.cc \
casa-source/casa5/code/display/QtViewer/QtViewerBase.cc \
casa-source/casa5/code/display/QtViewer/QtViewer.cc \
casa-source/casa5/code/display/QtViewer/QtViewerPrintGui.cc \
casa-source/casa5/code/display/QtViewer/QtWCBox.cc \
casa-source/casa5/code/display/QtViewer/RegionToolManager.cc \
casa-source/casa5/code/display/DisplayEvents/DTVisible.cc \
casa-source/casatools/casacore/measures/Measures/MDoppler.cc \
casa-source/casatools/casacore/measures/Measures/MCDoppler.cc \
casa-source/casatools/casacore/measures/Measures/MCDirection.cc \
casa-source/casatools/casacore/measures/Measures/MCFrequency.cc \
casa-source/casatools/casacore/measures/Measures/MeasTable.cc \
casa-source/casatools/casacore/measures/Measures/MCPosition.cc \
casa-source/casatools/casacore/measures/Measures/MeasFrame.cc \
casa-source/casatools/casacore/measures/Measures/MeasTableMul.cc \
casa-source/casatools/casacore/measures/Measures/MeasIERS.cc \
casa-source/casatools/casacore/measures/Measures/MeasJPL.cc \
casa-source/casatools/casacore/measures/Measures/MeasMath.cc \
casa-source/casatools/casacore/measures/Measures/MeasMath.cc \
casa-source/casatools/casacore/measures/Measures/Quality.cc \
casa-source/casatools/casacore/measures/TableMeasures/TableMeasType.cc \
casa-source/casatools/casacore/measures/TableMeasures/TableQuantumDesc.cc \
casa-source/casatools/casacore/measures/TableMeasures/TableMeasRefDesc.cc \
casa-source/casatools/casacore/measures/TableMeasures/TableMeasValueDesc.cc \
casa-source/casatools/casacore/measures/TableMeasures/TableMeasDescBase.cc \
casa-source/casatools/casacore/measures/TableMeasures/TableMeasOffsetDesc.cc \
casa-source/casatools/casacore/measures/TableMeasures/TableMeasColumn.cc \
casa-source/casatools/casacore/measures/TableMeasures/TableMeas_tmpl.cc \
casa-source/casatools/casacore/coordinates/Coordinates/QualityCoordinate.cc \
casa-source/casa5/code/spectrallines/Splatalogue/SearcherFactory.cc \
casa-source/casa5/code/spectrallines/Splatalogue/SplatResult.cc \
casa-source/casa5/code/spectrallines/Splatalogue/SQLiteSearch/DatabaseConnector.cc \
casa-source/casa5/code/spectrallines/Splatalogue/SQLiteSearch/SearcherSQLite.cc \
include/casagrpc/types/variant.cc \
include/casagrpc/types/record.cc \
source/casacore-version.cc
HEADERS = casa-source/casa5/code/display/QtViewer/DisplayDataHolder.h \
casa-source/casa5/code/display/QtViewer/grpcViewerAdaptor.qo.h \
casa-source/casa5/code/display/QtViewer/QtLELEdit.qo.h \
casa-source/casa5/code/display/QtViewer/InvisibleAxis.h \
casa-source/casa5/code/display/QtViewer/QtOptions.h \
casa-source/casa5/code/display/QtViewer/QtPCColorTable.h \
casa-source/casa5/code/display/QtViewer/QtWCBox.h \
casa-source/casa5/code/display/QtViewer/AboutDialogViewer.qo.h \
casa-source/casa5/code/display/QtViewer/AnimatorHolder.qo.h \
casa-source/casa5/code/display/QtViewer/AnimatorWidget.qo.h \
casa-source/casa5/code/display/QtPlotter/GaussianEstimateWidget.qo.h \
casa-source/casa5/code/display/QtPlotter/ThresholdingBinPlotDialog.qo.h \
casa-source/casa5/code/display/QtPlotter/QtMWCTools.qo.h \
casa-source/casa5/code/display/QtPlotter/annotations/AnnotationEditor.qo.h \
casa-source/casa5/code/display/QtPlotter/annotations/AnnotationEditorText.qo.h \
casa-source/casa5/code/display/QtPlotter/QtProfilePrefs.qo.h \
casa-source/casa5/code/display/QtPlotter/ColorSummaryWidget.qo.h \
casa-source/casa5/code/casaqt/QtUtilities/QtPanelBase.qo.h \
casa-source/casa5/code/display/QtAutoGui/QtAutoGui.qo.h \
casa-source/casa5/code/display/QtAutoGui/QtGuiEntry.qo.h
RESOURCES += casa-source/casa5/code/display/QtViewer/QtViewer.qrc \
casa-source/casa5/code/display/region/QtRegionDock.qrc \
casa-source/casa5/code/display/QtAutoGui/QtAutoGui.qrc \
casa-source/casa5/code/display/QtPlotter/QtPlotter.qrc
FORMS = casa-source/casa5/code/display/region/QtRegionState.ui \
casa-source/casa5/code/display/region/QtImageRegionStats.ui \
casa-source/casa5/code/display/region/QtMsRegionStats.ui \
casa-source/casa5/code/display/region/SlicerStats.ui \
casa-source/casa5/code/display/region/PVLineStats.ui \