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
unix:!mac{
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{
GCC_VERSION="5"
OSVERSION_MAJOR = $$system(uname -r | cut -d. -f1)
greaterThan(OSVERSION_MAJOR, 19) {
GCC_VERSION="9"
}
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" )
LIBS += -lwcs -lcfitsio -llapack -lblas -lgsl -lgslcblas -lfftw3 -lfftw3f -lfftw3_threads -lfftw3f_threads -lm -lgfortran -lxml2 -lxslt
# APP_EXE = build/bin.$$QMAKE_HOST.version/$${TARGET}.app
}
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
QMAKE_CXXFLAGS += -std=c++11 -DAIPS_HAS_QWT -DUseCasacoreNamespace -DNO_CRASH_REPORTER -DAIPS_LINUX -DWITHOUT_ACS -DWITHOUT_BOOST
unix:!mac{
QMAKE_CXXFLAGS += -fcx-fortran-rules -fno-omit-frame-pointer -DHAVE_O_DIRECT
}
QMAKE_CXXFLAGS += -DHAVE_FFTW3 -DHAVE_FFTW3_THREADS -Dcasa_casa_EXPORTS
unix:mac{
message( "Adding additional QMAKE_CXXFLAGS to satisfy clang++" )
## Clang thinks there's an ambiguous function named "JsonGramerror" (it looks like it is ambiguous...)
QMAKE_CXXFLAGS += -DYYERROR_IS_DECLARED
}
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
QMAKE_CC = ccache $$QMAKE_CC
QMAKE_CXX = ccache $$QMAKE_CXX
###
### 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
load(moc)