DCLibraries/dCArun/dCArun.pro

54 lines
1.0 KiB
Prolog
Raw Normal View History

QT += core
QT += serialport
2023-11-08 13:02:26 +01:00
QT +=network
# for TCP-IP
TARGET = dCArun
2023-11-21 09:25:04 +01:00
TEMPLATE = app
2023-11-08 16:23:49 +01:00
VERSION = "1.0.0"
DESTDIR=$${_PRO_FILE_PWD_}/../build
2023-11-08 13:02:26 +01:00
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")
2023-12-20 16:46:21 +01:00
GIT_COMMIT=""
EXTENDED_VERSION=""
2023-11-08 13:02:26 +01:00
} else {
BUILD_DATE=$$system("date +%d-%m-%y")
BUILD_TIME=$$system("date +%H:%M:%S")
2023-12-20 16:46:21 +01:00
GIT_COMMIT=$$system("git log -1 --format=oneline | cut -d' ' -f1")
EXTENDED_VERSION="$${VERSION}-$${GIT_COMMIT}"
}
2023-11-08 13:02:26 +01:00
DEFINES+=APP_VERSION=\\\"$$VERSION\\\"
DEFINES+=APP_BUILD_DATE=\\\"$$BUILD_DATE\\\"
DEFINES+=APP_BUILD_TIME=\\\"$$BUILD_TIME\\\"
DEFINES+=APP_EXTENDED_VERSION=\\\"$$EXTENDED_VERSION\\\"
SOURCES += \
2024-03-02 08:36:06 +01:00
CArun.cpp \
2023-11-08 13:02:26 +01:00
main.cpp \
tslib.cpp \
datei.cpp
HEADERS += \
2024-03-02 08:36:06 +01:00
CArun.h \
2023-11-08 13:02:26 +01:00
guidefs.h \
tslib.h \
versionHistory.txt \
datei.h \
plugin.h