diff --git a/kwrechner/kwrechner.pro b/kwrechner/kwrechner.pro index d01e364..2f0e5fd 100644 --- a/kwrechner/kwrechner.pro +++ b/kwrechner/kwrechner.pro @@ -22,3 +22,13 @@ FORMS += \ qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target + +# Static Builds +QTPREFIX=$$[QT_INSTALL_PREFIX] +equals(QTPREFIX, "C:/Qt-Static/Qt-5.14.2"){ + message("--STATIC BUILD--") + CONFIG += qt static + QMAKE_LFLAGS += -static-libgcc -static-libstdc++ +} else { + message("--NON-STATIC BUILD--") +} \ No newline at end of file