QT += widgets qml quick serialbus concurrent CONFIG += c++17 warn_on QMAKE_CXXFLAGS += -Wall -Werror -Wimplicit-fallthrough # -save-temps // see .ii and .s files #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 } DEFINES += "\"QT_MESSAGE_PATTERN=[%{type}] (%{file}:%{line}) - %{message}\"" # 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 += \ common \ sources \ sources/model \ sources/view \ sources/storage \ sources/gui \ sources/canbus \ sources/utility \ sources/abstract HEADERS += \ common/AlarmDefs.h \ common/DGDefs.h \ common/HDDefs.h \ common/MsgDefs.h \ sources/main.h \ sources/maintimer.h \ sources/model/mloadcellreadings.h \ sources/model/mtemperaturesensors.h \ sources/model/mtreatmentadjustblooddialysateresponse.h \ sources/model/mtreatmentadjustdurationresponse.h \ sources/model/mtreatmentadjustrequests.h \ sources/model/mtreatmentadjustultrafiltrationconfirmresponse.h \ sources/model/mtreatmentadjustultrafiltrationstateresponse.h \ sources/model/mtreatmentadjustultrafiltrationeditresponse.h \ sources/model/mtreatmentparameters.h \ sources/model/mtreatmentparametersresp.h \ sources/model/mtreatmentpressureocclusion.h \ sources/model/mtreatmentranges.h \ sources/storage/filesaver.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/VCreateTreatment.h \ sources/view/vloadcellreadings.h \ sources/view/vtemperaturesensors.h \ sources/view/vtreatmentadjustmentduration.h \ sources/view/vtreatmentadjustmentflows.h \ sources/view/vtreatmentadjustmentresponsebase.h \ sources/view/vtreatmentadjustmentultrafiltrationconfirm.h \ sources/view/vtreatmentadjustmentultrafiltrationedit.h \ sources/view/vtreatmentadjustmentultrafiltrationstate.h \ sources/view/vtreatmentpressureocclusion.h \ sources/view/vtreatmentranges.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/model/mloadcellreadings.cpp \ sources/model/mtemperaturesensors.cpp \ sources/model/mtreatmentadjustblooddialysateresponse.cpp \ sources/model/mtreatmentadjustdurationresponse.cpp \ sources/model/mtreatmentadjustultrafiltrationconfirmresponse.cpp \ sources/model/mtreatmentadjustultrafiltrationstateresponse.cpp \ sources/model/mtreatmentadjustultrafiltrationeditresponse.cpp \ sources/model/mtreatmentparameters.cpp \ sources/model/mtreatmentparametersresp.cpp \ sources/model/mtreatmentpressureocclusion.cpp \ sources/model/mtreatmentranges.cpp \ sources/storage/filesaver.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/VCreateTreatment.cpp \ sources/view/vloadcellreadings.cpp \ sources/view/vpoweroff.cpp \ sources/view/vtemperaturesensors.cpp \ sources/view/vtreatmentadjustmentduration.cpp \ sources/view/vtreatmentadjustmentflows.cpp \ sources/view/vtreatmentadjustmentresponsebase.cpp \ sources/view/vtreatmentadjustmentultrafiltrationconfirm.cpp \ sources/view/vtreatmentadjustmentultrafiltrationedit.cpp \ sources/view/vtreatmentadjustmentultrafiltrationstate.cpp \ sources/view/vtreatmentbloodflow.cpp \ sources/view/vtreatmentdialysateflow.cpp \ sources/view/vtreatmentpressureocclusion.cpp \ sources/view/vtreatmentranges.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="\\\"${majorVersion}\\\"" \ VER_MINOR="\\\"${minorVersion}\\\"" \ VER_MICRO="\\\"${microVersion}\\\"" \ VER_REVIS="\\\"${buildNumber}\\\"" \ VER_MAJOR_DEV=\\\"0\\\" \ VER_MINOR_DEV=\\\"0\\\" \ VER_MICRO_DEV=\\\"0\\\" \ VER_REVIS_DEV=\\\"$$system( date "+%m%d%H%M" )\\\" \ VER_APPLY=\\\"$$system( touch -m main.cpp)\\\" 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 } tst_models { message(Building with QtTest test case models) QT += testlib DEFINES += UNIT_TEST \ TEST_CLASS_INCLUDE=\\\"unittests/tst_models.h\\\" \ TEST_CLASS_NAME=tst_models HEADERS += \ unittests/tst_models.h SOURCES += \ unittests/tst_models.cpp } tst_views { message(Building with QtTest test case views) QT += testlib DEFINES += UNIT_TEST \ TEST_CLASS_INCLUDE=\\\"unittests/tst_views.h\\\" \ TEST_CLASS_NAME=tst_views HEADERS += \ unittests/tst_views.h SOURCES += \ unittests/tst_views.cpp } tst_initializations { message(Building with QtTest test case initializations) QT += testlib DEFINES += UNIT_TEST \ TEST_CLASS_INCLUDE=\\\"unittests/tst_initializations.h\\\" \ TEST_CLASS_NAME=tst_initializations HEADERS += unittests/tst_initializations.h SOURCES += unittests/tst_initializations.cpp } tst_threads { message(Building with QtTest test case threads) QT += testlib DEFINES += UNIT_TEST \ TEST_CLASS_INCLUDE=\\\"unittests/tst_threads.h\\\" \ TEST_CLASS_NAME=tst_threads HEADERS += unittests/tst_threads.h SOURCES += unittests/tst_threads.cpp } tst_messaging { message(Building with QtTest test case messaging) QT += testlib DEFINES += UNIT_TEST \ TEST_CLASS_INCLUDE=\\\"unittests/tst_messaging.h\\\" \ TEST_CLASS_NAME=tst_messaging HEADERS += unittests/tst_messaging.h SOURCES += unittests/tst_messaging.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 DISTFILES +=