INCLUDEPATH += include build/include.$$QMAKE_HOST.version casa-source/casa5/code casa-source/casatools/casacore
### 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)
system(scripts/do-config)
### 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
QMAKE_MOC += -DCASATOOLS -DCASA6
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/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 -DCASA6 -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
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 -DCASA6