QT += widgets qml quick serialbus concurrent CONFIG += c++17 warn_on QMAKE_CXXFLAGS += -Wall -Werror -Wimplicit-fallthrough # -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 += \ common \ sources \ sources/model \ sources/view \ sources/storage \ sources/gui \ sources/canbus \ sources/utility \ sources/abstract \ sources/model/hd/adjustment \ sources/model/hd/alarm \ sources/model/hd/data \ sources/model/dg/data \ sources/view/dg/data HEADERS += \ \ # common common/AlarmDefs.h \ common/DGDefs.h \ common/HDDefs.h \ common/MsgDefs.h \ \ # Main sources/main.h \ sources/model/MAbstract.h \ sources/threads.h \ sources/maintimer.h \ sources/applicationpost.h \ \ # Controllers sources/applicationcontroller.h \ \ # ---------- Models ---------- sources/model/MModel.h \ sources/model/MPowerOff.h \ \ # ---------- Models - Alarm sources/model/hd/alarm/MAlarmCleared.h \ sources/model/hd/alarm/MAlarmTriggered.h \ sources/model/hd/alarm/MAlarmStatusData.h \ \ # ---------- Models - HD - Adjustment - In-Treatment sources/model/hd/adjustment/MTreatmentAdjustRequests.h \ sources/model/hd/adjustment/MTreatmentAdjustDurationResponse.h \ sources/model/hd/adjustment/MTreatmentAdjustBloodDialysateResponse.h \ sources/model/hd/adjustment/MTreatmentAdjustUltrafiltrationStateResponse.h \ sources/model/hd/adjustment/MTreatmentAdjustUltrafiltrationEditResponse.h \ sources/model/hd/adjustment/MTreatmentAdjustUltrafiltrationConfirmResponse.h \ \ # ---------- Models - HD - Data sources/model/hd/data/MTreatmentTimeData.h \ sources/model/hd/data/MTreatmentFlowsData.h \ sources/model/hd/data/MTreatmentOutletFlowData.h \ sources/model/hd/data/MTreatmentRangesData.h \ sources/model/hd/data/MTreatmentPressureOcclusionData.h \ sources/model/hd/data/MTreatmentStatesData.h \ \ # ---------- Models - DG - Data sources/model/dg/data/MDGDrainPumpData.h \ sources/model/dg/data/MDGHeatersData.h \ sources/model/dg/data/MDGLoadCellReadingsData.h \ sources/model/dg/data/MDGOperationModeData.h \ sources/model/dg/data/MDGPressuresData.h \ sources/model/dg/data/MDGReservoirData.h \ sources/model/dg/data/MDGROPumpData.h \ sources/model/dg/data/MDGTemperaturesData.h \ sources/model/dg/data/MDGValvesStatesData.h \ \ # CANBus sources/canbus/caninterface.h \ sources/canbus/frameinterface.h \ \ # Denali Message sources/canbus/messageglobals.h \ sources/canbus/messageacknowmodel.h \ sources/canbus/messagebuilder.h \ sources/canbus/messageinterpreter.h \ sources/canbus/messagedispatcher.h \ \ # Gui sources/gui/guiglobals.h \ sources/gui/guiview.h \ sources/gui/guicontroller.h \ \ # ---------- Views ---------- sources/view/dg/data/VDGDrainPumpData.h \ sources/view/dg/data/VDGHeatersData.h \ sources/view/dg/data/VDGLoadCellReadingsData.h \ sources/view/dg/data/VDGOperationModeData.h \ sources/view/dg/data/VDGPressuresData.h \ sources/view/dg/data/VDGROPumpData.h \ sources/view/dg/data/VDGReservoirData.h \ sources/view/dg/data/VDGTemperaturesData.h \ sources/view/dg/data/VDGValvesStatesData.h \ sources/view/vview.h \ sources/view/vpoweroff.h \ sources/view/valarmstatus.h \ \ sources/view/vtreatmenttime.h \ sources/view/vtreatmentbloodflow.h \ sources/view/vtreatmentdialysateflow.h \ sources/view/vtreatmentultrafiltration.h \ sources/view/vtreatmentranges.h \ sources/view/vtreatmentpressureocclusion.h \ \ \ sources/view/vtreatmentadjustmentresponsebase.h \ sources/view/vtreatmentadjustmentduration.h \ sources/view/vtreatmentadjustmentflows.h \ sources/view/vtreatmentadjustmentultrafiltrationstate.h \ sources/view/vtreatmentadjustmentultrafiltrationedit.h \ sources/view/vtreatmentadjustmentultrafiltrationconfirm.h \ \ # Storage sources/storage/storageglobals.h \ sources/storage/filehandler.h \ sources/storage/usbwatcher.h \ sources/storage/logger.h \ \ # Utility sources/utility/crc.h \ sources/utility/format.h \ sources/utility/types.h # sources/configuration/display.h \ # sources/configuration/sound.h \ # sources/storage/settings.h \ SOURCES += \ \ # common \ # Main main.cpp \ sources/threads.cpp \ sources/maintimer.cpp \ sources/applicationpost.cpp \ \ # Controllers sources/applicationcontroller.cpp \ \ # ---------- Models ---------- sources/model/MPowerOff.cpp \ \ # ---------- Models - Alarm sources/model/hd/alarm/MAlarmCleared.cpp \ sources/model/hd/alarm/MAlarmTriggered.cpp \ sources/model/hd/alarm/MAlarmStatusData.cpp \ \ # ---------- Models - HD - Adjustment - In-Treatment sources/model/hd/adjustment/MTreatmentAdjustDurationResponse.cpp \ sources/model/hd/adjustment/MTreatmentAdjustBloodDialysateResponse.cpp \ sources/model/hd/adjustment/MTreatmentAdjustUltrafiltrationStateResponse.cpp \ sources/model/hd/adjustment/MTreatmentAdjustUltrafiltrationEditResponse.cpp \ sources/model/hd/adjustment/MTreatmentAdjustUltrafiltrationConfirmResponse.cpp \ \ # ---------- Models - HD - Data sources/model/hd/data/MTreatmentTimeData.cpp \ sources/model/hd/data/MTreatmentFlowsData.cpp \ sources/model/hd/data/MTreatmentOutletFlowData.cpp \ sources/model/hd/data/MTreatmentRangesData.cpp \ sources/model/hd/data/MTreatmentPressureOcclusionData.cpp \ sources/model/hd/data/MTreatmentStatesData.cpp \ \ # ---------- Models - DG - Data sources/model/dg/data/MDGDrainPumpData.cpp \ sources/model/dg/data/MDGHeatersData.cpp \ sources/model/dg/data/MDGLoadCellReadingsData.cpp \ sources/model/dg/data/MDGOperationModeData.cpp \ sources/model/dg/data/MDGPressuresData.cpp \ sources/model/dg/data/MDGReservoirData.cpp \ sources/model/dg/data/MDGROPumpData.cpp \ sources/model/dg/data/MDGTemperaturesData.cpp \ sources/model/dg/data/MDGValvesStatesData.cpp \ \ # CANBus sources/canbus/caninterface.cpp \ sources/canbus/frameinterface.cpp \ \ # Denali Message sources/canbus/messageacknowmodel.cpp \ sources/canbus/messagebuilder.cpp \ sources/canbus/messagedispatcher.cpp \ sources/canbus/messageinterpreter.cpp \ \ # Gui sources/gui/guiglobals.cpp \ sources/gui/guiview.cpp \ sources/gui/guicontroller.cpp \ \ # ---------- Views ---------- sources/view/dg/data/VDGDrainPumpData.cpp \ sources/view/dg/data/VDGHeatersData.cpp \ sources/view/dg/data/VDGLoadCellReadingsData.cpp \ sources/view/dg/data/VDGOperationModeData.cpp \ sources/view/dg/data/VDGPressuresData.cpp \ sources/view/dg/data/VDGROPumpData.cpp \ sources/view/dg/data/VDGReservoirData.cpp \ sources/view/dg/data/VDGTemperaturesData.cpp \ sources/view/dg/data/VDGValvesStatesData.cpp \ sources/view/vpoweroff.cpp \ sources/view/valarmstatus.cpp \ \ sources/view/vtreatmenttime.cpp \ sources/view/vtreatmentbloodflow.cpp \ sources/view/vtreatmentdialysateflow.cpp \ sources/view/vtreatmentultrafiltration.cpp \ sources/view/vtreatmentranges.cpp \ sources/view/vtreatmentpressureocclusion.cpp \ \ \ sources/view/vtreatmentadjustmentresponsebase.cpp \ sources/view/vtreatmentadjustmentduration.cpp \ sources/view/vtreatmentadjustmentflows.cpp \ sources/view/vtreatmentadjustmentultrafiltrationstate.cpp \ sources/view/vtreatmentadjustmentultrafiltrationedit.cpp \ sources/view/vtreatmentadjustmentultrafiltrationconfirm.cpp \ \ # Storage sources/storage/storageglobals.cpp \ sources/storage/filehandler.cpp \ sources/storage/usbwatcher.cpp \ sources/storage/logger.cpp \ \ # Utility sources/utility/crc.cpp \ sources/utility/format.cpp \ sources/utility/types.cpp # sources/configuration/display.cpp \ # sources/configuration/sound.cpp \ # sources/storage/settings.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 +=