QT += widgets qml quick serialbus concurrent CONFIG += c++17 warn_on QMAKE_CXXFLAGS += -Wall -Werror # -save-temps #CONFIG += disable_crc disable_crc { message( *** IMPORTANT : DISABLED CRC CHECK *** ) DEFINES += DISABLE_CRC } #CONFIG += disable_keepalive disable_keepalive { message( *** IMPORTANT : DISABLED KEEP ALIVE *** ) DEFINES += DISABLE_KEEP_ALIVE } # The following define makes your compiler emit warnings if you use # any Qt feature that has been marked deprecated (the exact warnings # depend on your compiler). Refer to the documentation for the # deprecated API to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 INCLUDEPATH += \ sources \ sources/model \ sources/view \ sources/storage \ sources/gui \ sources/canbus \ sources/utility \ sources/abstract HEADERS += \ sources/main.h \ sources/maintimer.h \ sources/threads.h \ sources/applicationcontroller.h \ sources/applicationpost.h \ sources/canbus/caninterface.h \ sources/canbus/frameinterface.h \ sources/canbus/messageacknowmodel.h \ sources/canbus/messagebuilder.h \ sources/canbus/messagedispatcher.h \ sources/canbus/messageglobals.h \ sources/canbus/messageinterpreter.h \ # sources/configuration/display.h \ # sources/configuration/sound.h \ sources/gui/guiglobals.h \ sources/gui/guiview.h \ sources/gui/guicontroller.h \ sources/model/malarmstatus.h \ sources/model/mmodel.h \ sources/model/mpoweroff.h \ sources/model/mtreatmentflows.h \ sources/model/mtreatmentoutletflow.h \ sources/model/mtreatmenttime.h \ sources/view/vview.h \ sources/view/vpoweroff.h \ sources/view/vtreatmentbloodflow.h \ sources/view/vtreatmentdialysateflow.h \ sources/view/vtreatmenttime.h \ sources/view/vtreatmentultrafiltration.h \ sources/view/valarmstatus.h \ sources/storage/filehandler.h \ sources/storage/logger.h \ sources/storage/storageglobals.h \ sources/storage/usbwatcher.h \ # sources/storage/settings.h \ sources/utility/crc.h \ sources/utility/format.h \ sources/utility/types.h SOURCES += \ main.cpp \ sources/maintimer.cpp \ sources/threads.cpp \ sources/applicationcontroller.cpp \ sources/applicationpost.cpp \ sources/canbus/caninterface.cpp \ sources/canbus/frameinterface.cpp \ sources/canbus/messageacknowmodel.cpp \ sources/canbus/messagebuilder.cpp \ sources/canbus/messagedispatcher.cpp \ sources/canbus/messageinterpreter.cpp \ # sources/configuration/display.cpp \ # sources/configuration/sound.cpp \ sources/gui/guiglobals.cpp \ sources/gui/guiview.cpp \ sources/gui/guicontroller.cpp \ sources/model/mpoweroff.cpp \ sources/model/mtreatmentflows.cpp \ sources/model/mtreatmentoutletflow.cpp \ sources/model/mtreatmenttime.cpp \ sources/model/malarmstatus.cpp \ sources/view/vpoweroff.cpp \ sources/view/vtreatmentbloodflow.cpp \ sources/view/vtreatmentdialysateflow.cpp \ sources/view/vtreatmentultrafiltration.cpp \ sources/view/vtreatmenttime.cpp \ sources/view/valarmstatus.cpp \ sources/storage/filehandler.cpp \ sources/storage/logger.cpp \ sources/storage/storageglobals.cpp \ sources/storage/usbwatcher.cpp \ # sources/storage/settings.cpp \ sources/utility/crc.cpp \ sources/utility/format.cpp \ sources/utility/types.cpp RESOURCES += \ denali.qrc DEFINES += \ VER_MAJOR="0" \ VER_MINOR="4" \ VER_REVIS="\\\"${buildNumber}\\\"" \ VER_DEVEL="999" CodeCoverage { message(Building with Squish Coco) COVERAGE_OPTIONS += --cs-qt4 COVERAGE_OPTIONS += --cs-exclude-path=build=testunits COVERAGE_OPTIONS += --cs-exclude-file-regex=ui_.* COVERAGE_OPTIONS += --cs-exclude-file-regex=moc_.* COVERAGE_OPTIONS += --cs-exclude-file-regex=main.cpp COVERAGE_OPTIONS += --cs-exclude-file-regex=qmlcache* COVERAGE_OPTIONS += --cs-exclude-file-regex=tst_* QMAKE_CFLAGS += $$COVERAGE_OPTIONS QMAKE_CXXFLAGS += $$COVERAGE_OPTIONS QMAKE_LFLAGS += $$COVERAGE_OPTIONS DEFINES += SQUISH_COCO_BULD } tst_canbus { message(Building with QtTest test case canbus) QT += testlib DEFINES += UNIT_TEST \ TEST_CLASS_INCLUDE=\\\"unittests/tst_canbus.h\\\" \ TEST_CLASS_NAME=tst_canbus HEADERS += \ unittests/tst_canbus.h SOURCES += \ unittests/tst_canbus.cpp } tst_logging { message(Building with QtTest test case logging) QT += testlib DEFINES += UNIT_TEST \ TEST_CLASS_INCLUDE=\\\"unittests/tst_logging.h\\\" \ TEST_CLASS_NAME=tst_logging HEADERS += \ unittests/tst_logging.h SOURCES += \ unittests/tst_logging.cpp } tst_utilities { message(Building with QtTest test case utilities) QT += testlib DEFINES += UNIT_TEST \ TEST_CLASS_INCLUDE=\\\"unittests/tst_utilities.h\\\" \ TEST_CLASS_NAME=tst_utilities HEADERS += \ unittests/tst_utilities.h SOURCES += \ unittests/tst_utilities.cpp } tst_acknow { message(Building with QtTest test case acknow) QT += testlib DEFINES += UNIT_TEST \ TEST_CLASS_INCLUDE=\\\"unittests/tst_acknow.h\\\" \ TEST_CLASS_NAME=tst_acknow HEADERS += \ unittests/tst_acknow.h SOURCES += \ unittests/tst_acknow.cpp } # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = # Additional import path used to resolve QML modules just for Qt Quick Designer QML_DESIGNER_IMPORT_PATH = # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target