repository for casafeather app
Source
xxxxxxxxxx
QMAKE_POST_LINK = scripts/create-app --no-data name=feather exe=$$DESTDIR/$${TARGET}.app/Contents/MacOS/$$TARGET app=$$APP lib=$$DESTDIR/$${TARGET}.app/Contents/Frameworks tgt=$$lower($$QMAKE_HOST.os) plugins=$$[QT_INSTALL_PLUGINS] $$GRPC_PATH $$MAC_THIRD_PARTY_LIBS_PATH $$RPATH_LIBS
system(scripts/casafeather-config)
QMAKE_MOC = $$QMAKE_MOC -DAIPS_HAS_QWT
INCLUDEPATH += include \
src \
src/code \
build/include.$$QMAKE_HOST.version \
casa-source/casatools/src/code \
casa-source/casatools/casacore \
sakura-source/src
CONFIG += release cpp11
exists ( $$[QT_INSTALL_DATA]/mkspecs/features/qwt.prf ) {
include ( $$[QT_INSTALL_DATA]/mkspecs/features/qwt.prf )
}
exists ( $$[QTMAKEFEATURES]/mkspecs/features/qwt.prf ) {
include ( $$[QTMAKEFEATURES]/mkspecs/features/qwt.prf )
}
exists(/usr/include/eigen3) { INCLUDEPATH += /usr/include/eigen3 }
exists(eigen3) { INCLUDEPATH += eigen3 }
INCLUDEPATH += /opt/casa/03/include /opt/casa/02/include /usr/include/cfitsio /opt/casa/03/include/libxml2 /usr/include/libxml2 /usr/include
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
exists(/root/local/include) { INCLUDEPATH += /root/local/include/ }
exists(/root/local/lib) { LIBDIR_LIST += /root/local/lib/ }
GFORTRAN = gfortran
QMAKE_CXXFLAGS += -DHAVE_FFTW3 -DHAVE_FFTW3_THREADS -Dcasa_casa_EXPORTS -DAIPS_HAS_QWT -DUseCasacoreNamespace -DNO_CRASH_REPORTER -DAIPS_LINUX -DWITHOUT_ACS -DWITHOUT_BOOST
unix:!mac{
QMAKE_CXXFLAGS += -std=c++11 -fcx-fortran-rules -fno-omit-frame-pointer -DHAVE_O_DIRECT
LIBS += -lwcs -lcfitsio -llapack -lblas -lgsl -lgslcblas -lfftw3 -lfftw3f -lfftw3_threads -lfftw3f_threads -lm -lgfortran -lelf -lrt -lxml2 -lxslt -ldl
greaterThan(QT_MAJOR_VERSION, 4) {
LIBDIR_LIST += /usr/lib64
LIBS += -lqwt-qt5
}
# APP_EXE = build/bin.$$QMAKE_HOST.version/$${TARGET}-x86_64.AppImage
}
unix:mac{
QMAKE_APPLE_DEVICE_ARCHS = $$system(uname -m)
QMAKE_CXXFLAGS += -std=c++14 -arch $$QMAKE_APPLE_DEVICE_ARCHS -flat_namespace
## Clang thinks there's an ambiguous function named "JsonGramerror" (it looks like it is ambiguous...)
QMAKE_CXXFLAGS += -DYYERROR_IS_DECLARED
GCC_VERSION="5"
OSVERSION_MAJOR = $$system(uname -r | cut -d. -f1)
greaterThan(OSVERSION_MAJOR, 19) {
GCC_VERSION="9"
}
greaterThan(OSVERSION_MAJOR, 21) {
GCC_VERSION="12"
}
FORTRAN_BIN = $$system(which gfortran)
isEmpty(FORTRAN_BIN) {
message("gfortran not found. Trying gfortran-mp-$${GCC_VERSION} instead")
GFORTRAN = gfortran-mp-$${GCC_VERSION}
}
message( "Using proper libraries in MacOS" )
CONFIG += c++14
MAC_THIRD_PARTY_PATH = "/opt/local"
exists( /opt/casa/03 ) {
MAC_THIRD_PARTY_PATH = "/opt/casa/03"
message("Found /opt/casa/03")
}
LIBS += -lwcs
INCLUDEPATH += $$MAC_THIRD_PARTY_PATH/include #include <wcslib/wcs.h>
LIBDIR_LIST = $$MAC_THIRD_PARTY_PATH/lib $$MAC_THIRD_PARTY_PATH/lib/gcc$${GCC_VERSION}
LIBS += -lwcs -lcfitsio -llapack -lblas -lgsl -lgslcblas -lfftw3 -lfftw3f -lfftw3_threads -lfftw3f_threads -lm -lgfortran -lxml2 -lxslt
}
OBJECTS_DIR = build/lib.$$QMAKE_HOST.version/objs
MOC_DIR = build/lib.$$QMAKE_HOST.version/moc
RCC_DIR = build/lib.$$QMAKE_HOST.version/rcc
UI_DIR = build/include.$$QMAKE_HOST.version/ui
CONFIG += object_parallel_to_source
QT += xml widgets printsupport
for(p, LIBDIR_LIST) {
exists($$p):LIBS += -L$$p
exists($$p):RPATH_LIBS += $$p
}
YACC_DIR = include/yacc
INCLUDEPATH += $$YACC_DIR