aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml2
-rw-r--r--libqmatrixclient.pri4
-rw-r--r--qmc-example.pro7
3 files changed, 11 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 24a182cf..313d1408 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,6 +15,8 @@ install:
- cmake ..
script:
- cmake --build . --target all
+ - cd ..
+ - qmake qmc-example.pro && make all
notifications:
webhooks:
urls:
diff --git a/libqmatrixclient.pri b/libqmatrixclient.pri
index dcdf1709..e974bda2 100644
--- a/libqmatrixclient.pri
+++ b/libqmatrixclient.pri
@@ -1,5 +1,5 @@
QT += network
-CONFIG += c++11
+CONFIG += c++11 warn_on rtti_off
INCLUDEPATH += $$PWD
@@ -8,7 +8,7 @@ HEADERS += \
$$PWD/connection.h \
$$PWD/room.h \
$$PWD/user.h \
- $$PWD/state.h \
+ $$PWD/util.h \
$$PWD/events/event.h \
$$PWD/events/roommessageevent.h \
$$PWD/events/roomnameevent.h \
diff --git a/qmc-example.pro b/qmc-example.pro
new file mode 100644
index 00000000..4dc3fed1
--- /dev/null
+++ b/qmc-example.pro
@@ -0,0 +1,7 @@
+TEMPLATE = app
+
+windows { CONFIG += console }
+
+include(libqmatrixclient.pri)
+
+SOURCES += examples/qmc-example.cpp