QT += core gui QT +=widgets serialport QT +=network # for TCP-IP TARGET = dCArun VERSION = "1.0.0" DESTDIR=$${_PRO_FILE_PWD_}/../build greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++11 CONFIG += PTU5 # _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] QMAKE_CXXFLAGS += -O INCLUDEPATH += ../include win32 { BUILD_DATE=$$system("date /t") BUILD_TIME=$$system("time /t") } else { BUILD_DATE=$$system("date +%d-%m-%y") BUILD_TIME=$$system("date +%H:%M:%S") } GIT_COMMIT=$$system("git log -1 --format=oneline | cut -d' ' -f1") EXTENDED_VERSION="$${VERSION}-$${GIT_COMMIT}" DEFINES+=APP_VERSION=\\\"$$VERSION\\\" DEFINES+=APP_BUILD_DATE=\\\"$$BUILD_DATE\\\" DEFINES+=APP_BUILD_TIME=\\\"$$BUILD_TIME\\\" DEFINES+=APP_EXTENDED_VERSION=\\\"$$EXTENDED_VERSION\\\" SOURCES += \ main.cpp \ mainwindow.cpp \ tslib.cpp \ win01_com.cpp \ datei.cpp HEADERS += \ guidefs.h \ mainwindow.h \ stepList.h \ tslib.h \ versionHistory.txt \ win01_com.h \ datei.h \ plugin.h