UpdatePTUDevCtrl/UpdatePTUDevCtrl.pro

57 lines
1.8 KiB
Prolog
Raw Normal View History

2023-04-05 14:43:27 +02:00
# QT -= gui
2023-04-11 14:02:51 +02:00
QT += core
QT += widgets serialport
QT += network
2023-04-05 14:43:27 +02:00
TARGET = up_dev_ctrl
CONFIG += c++11
# CONFIG -= app_bundle
# DEFINES+=LinuxDesktop
2023-04-05 14:43:27 +02:00
QMAKE_CXXFLAGS += -Wno-deprecated-copy
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
contains( CONFIG, PTU5 ) {
greaterThan(QT_MAJOR_VERSION, 4): QT += serialport
CONFIG += link_pkgconfig
lessThan(QT_MAJOR_VERSION, 5): PKGCONFIG += qextserialport
QMAKE_CXXFLAGS += -std=c++11 # for GCC >= 4.7
QMAKE_CXXFLAGS += -Wno-deprecated-copy
ARCH = PTU5
DEFINES+=PTU5
}
contains( CONFIG, DesktopLinux ) {
greaterThan(QT_MAJOR_VERSION, 4): QT += serialport
lessThan(QT_MAJOR_VERSION, 5): CONFIG += extserialport
# QMAKE_CC = ccache $$QMAKE_CC
# QMAKE_CXX = ccache $$QMAKE_CXX
QMAKE_CXXFLAGS += -std=c++11
QMAKE_CXXFLAGS += -Wno-deprecated-copy
linux-clang { QMAKE_CXXFLAGS += -Qunused-arguments }
ARCH = DesktopLinux
DEFINES+=DesktopLinux
}
2023-04-05 14:43:27 +02:00
SOURCES += \
main.cpp \
message_handler.cpp
2023-04-05 14:43:27 +02:00
HEADERS += \
message_handler.h \
2023-04-13 11:27:20 +02:00
DCPlugin/include/interfaces.h
2023-04-05 14:43:27 +02:00
2023-04-11 14:06:41 +02:00
# https://blog.developer.atlassian.com/the-power-of-git-subtree/?_ga=2-71978451-1385799339-1568044055-1068396449-1567112770
# git subtree add --prefix DCPlugin https://git.mimbach49.de/GerhardHoffmann/DCPlugin.git master --squash
# git subtree pull --prefix DCPlugin https://git.mimbach49.de/GerhardHoffmann/DCPlugin.git master --squash
include(./DCPlugin/DCPlugin.pri)
2023-04-05 14:43:27 +02:00
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target