diff --git a/BionxControl.pro b/BionxControl.pro index 92b6665..e5bb34b 100644 --- a/BionxControl.pro +++ b/BionxControl.pro @@ -12,11 +12,26 @@ QMAKE_CXXFLAGS += -std=c++23 INCLUDEPATH += . libwin -linux { - #LIBS += -lpigpio -lpigpiod_if2 -lrt - # FIXME SOURCES += +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 + + # 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