QT += core gui svg greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++23 QMAKE_CXXFLAGS += -std=c++23 # 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 INCLUDEPATH += . libwin linux:contains(QT_ARCH, arm.*) { message("Konfiguration für Raspberry Pi (ARM) erkannt.") # 1. Header-Dateien (z.B. für bcm2835.h oder eigene Treiber) #INCLUDEPATH += /usr/local/include \ # /home/pi/my_custom_drivers/include # not used at the moment # 2. Bibliotheken linken # -L sagt dem Linker WO er suchen soll # -l sagt dem Linker WAS er nehmen soll (z.B. libwiringPi.so -> -lwiringPi) #LIBS += -L/usr/lib \ # -lmhstcan # Optional: Spezielle Compiler-Flags für den Pi (Optimierung) #QMAKE_CXXFLAGS += -O3 } li windows { #LIBS += -L$$PWD/can_api -lmhstcan -lAdvapi32 message("Konfiguration für Windows.") } # 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 SOURCES += \ bc.cpp \ bcanimateddelegate.cpp \ bcdeviceview.cpp \ bcdriver.cpp \ bcdriverstatewidget.cpp \ bcdrivertinycan.cpp \ bcsliderstyle.cpp \ bcthemeswitchbutton.cpp \ bctransmitter.cpp \ bcvalue.cpp \ bcvaluemodel.cpp \ bcxmlloader.cpp \ libwin/can_drv_win.c \ libwin/mhs_can_drv.c \ main.cpp \ bcmainwindow.cpp HEADERS += \ bc.h \ bcanimateddelegate.h \ bcdeviceview.h \ bcdriver.h \ bcdriverstatewidget.h \ bcdrivertinycan.h \ bcmainwindow.h \ bcsliderstyle.h \ bcthemeswitchbutton.h \ bctransmitter.h \ bcvalue.h \ bcvaluemodel.h \ bcxmlloader.h FORMS += \ bcmainwindow.ui # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target RESOURCES += \ bionxcontrol.qrc