HomeAutomation.pro 1.04 KB
Newer Older
1 2
TEMPLATE = app

3 4 5 6 7 8 9 10 11 12 13 14
# Control KNX board with the demo
#CONFIG += KNX_BOARD

KNX_BOARD {
    requires(qtHaveModule(knx))
    requires(qtHaveModule(network))
    DEFINES += KNX_BACKEND

    QT += knx
    CONFIG += c++11
}

15
QT += qml quick
16

17 18
CONFIG += resources_big

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
target.path = $$[QT_INSTALL_EXAMPLES]/studio3d/$$TARGET
INSTALLS += target

SOURCES += main.cpp \
    housemodel.cpp

HEADERS += \
    housemodel.h

RESOURCES += HomeAutom.qrc

OTHER_FILES += qml/HomeAutom/*

RC_ICONS += HomeAutom.ico

34 35 36 37 38 39 40 41 42 43 44 45 46
KNX_BOARD {
    SOURCES += \
        qmlknxdemo.cpp \
        etsdevelopmentboard.cpp \
        demodatapoint.cpp

    HEADERS += \
        qmlknxdemo.h \
        demodatapoint.h \
        utils.h \
        etsdevelopmentboard.h
}

47 48 49 50 51 52 53 54 55 56 57 58
QML_IMPORT_PATH = $$PWD/qml/imports

DISTFILES += \
    android/AndroidManifest.xml \
    android/gradle/wrapper/gradle-wrapper.jar \
    android/gradlew \
    android/res/values/libs.xml \
    android/build.gradle \
    android/gradle/wrapper/gradle-wrapper.properties \
    android/gradlew.bat

ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android