repository for casatablebrowser
Source
system(scripts/casatablebrowser-config)
QMAKE_MOC = $$QMAKE_MOC -DAIPS_HAS_QWT -DYYERROR_IS_DECLARED
INCLUDEPATH += include build/include.$$QMAKE_HOST.version casa-source/casatools/casacore src/code casa-source/casatools/src/code -I/usr/include src/code
CONFIG += release cpp11
exists ( $$[CASA_QWT_INSTALL_DATA]/features/qwt.prf ) {
include ( $$[CASA_QWT_INSTALL_DATA]/features/qwt.prf )
QWT_LIB_PATH = $$[CASA_QWT_INSTALL_DATA]/lib
} else { exists ( $$[QT_INSTALL_DATA]/mkspecs/features/qwt.prf ) {
include ( $$[QT_INSTALL_DATA]/mkspecs/features/qwt.prf )
} } else { exists ( $$[QMAKEFEATURES]/mkspecs/features/qwt.prf ) {
include ( $$[QMAKEFEATURES]/mkspecs/features/qwt.prf )
} }
INCLUDEPATH += /opt/casa/03/include /opt/casa/02/include /usr/include/cfitsio
LIBDIR_LIST = /opt/casa/03/lib /opt/casa/02/lib /opt/rh/devtoolset-4/root/usr/lib/gcc/x86_64-redhat-linux/5.3.1 /opt/local/lib/gcc5
LIBS += -lxerces-c -ldl
QMAKE_CXXFLAGS += -DYYERROR_IS_DECLARED -DAIPS_HAS_QWT -DUseCasacoreNamespace -DNO_CRASH_REPORTER -DAIPS_LINUX -DWITHOUT_ACS -DWITHOUT_BOOST -DUSE_GRPC
unix:!mac{
QMAKE_CXXFLAGS += -std=c++11
LIBS += -lrt
greaterThan(QT_MAJOR_VERSION, 4) {
LIBDIR_LIST += /usr/lib64
LIBS += -lqwt-qt5
}
DESTDIR = build/bin.$$QMAKE_HOST.version/casatablebrowser.app/usr/bin
APP = $$DESTDIR/../..
QMAKE_LFLAGS_RPATH=
QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN/../lib\'"
QMAKE_POST_LINK = scripts/create-app --no-data name=tablebrowser exe=$$DESTDIR/$$TARGET app=$$APP lib=$$DESTDIR/../lib tgt=$$lower($$QMAKE_HOST.os) plugins=$$[QT_INSTALL_PLUGINS] $$RPATH_LIBS
APP_EXE = build/bin.$$QMAKE_HOST.version/$${TARGET}-x86_64.AppImage
}
macx:{
QMAKE_APPLE_DEVICE_ARCHS = $$system(uname -m)
QMAKE_CXXFLAGS += -std=c++14 -arch $$QMAKE_APPLE_DEVICE_ARCHS -flat_namespace
# suppress the default RPATH if you wish
QMAKE_LFLAGS_RPATH=
# add your own with quoting gyrations to make sure $ORIGIN gets to the command line unexpanded
QMAKE_LFLAGS += "-Wl,-rpath,\'@loader_path/../Frameworks\'"
DESTDIR = build/bin.$$QMAKE_HOST.version
APP = $$DESTDIR/$${TARGET}.app
exists( /opt/local ) {
message("Found /opt/local")
MAC_THIRD_PARTY_PATH = "/opt/local"
INCLUDEPATH += /opt/local/include
LIBDIR_LIST += /opt/local/lib
}
exists( /opt/casa/02 ) {
MAC_THIRD_PARTY_PATH = "/opt/casa/02"
message("Found /opt/casa/02")
}
exists( /opt/casa/03 ) {
MAC_THIRD_PARTY_PATH = "/opt/casa/03"
message("Found /opt/casa/03")
}
exists ( $(CONDA_PREFIX) ) {
# When using anaconda3, the qt libraries are in the conda environment and are detected by the system
MAC_THIRD_PARTY_LIBS_PATH = ""
message("Found conda environment: $(CONDA_PREFIX)")
}
QMAKE_POST_LINK = scripts/create-app --no-data name=tablebrowser exe=$$DESTDIR/$${TARGET}.app/Contents/MacOS/$$TARGET app=$$APP lib=$$DESTDIR/$${TARGET}.app/Contents/Frameworks tgt=$$lower($$QMAKE_HOST.os) plugins=$$[QT_INSTALL_PLUGINS] $$MAC_THIRD_PARTY_PATH/lib $$RPATH_LIBS $$QWT_LIB_PATH