summaryrefslogtreecommitdiff
path: root/tests/tests.pro
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2013-08-25 20:39:13 +0200
committerKurt Pattyn <pattyn.kurt@gmail.com>2013-08-25 20:39:13 +0200
commit8887c7495acf23c65f62b67f931a912c9873da4b (patch)
treee53d219d27aae826baa5872e26b54bc07a939638 /tests/tests.pro
parent5673ac7c1ed36da52f06a0b7a52900bf9d6ef873 (diff)
downloadqtwebsockets-8887c7495acf23c65f62b67f931a912c9873da4b.tar.gz
Added required structure and .pro files to the project
Diffstat (limited to 'tests/tests.pro')
-rw-r--r--tests/tests.pro37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/tests.pro b/tests/tests.pro
new file mode 100644
index 0000000..92202bb
--- /dev/null
+++ b/tests/tests.pro
@@ -0,0 +1,37 @@
+cache()
+
+QT += core network
+
+TARGET = unittests
+CONFIG += console
+CONFIG += c++11
+CONFIG -= app_bundle
+
+TEMPLATE = app
+
+include(../src/qwebsockets.pri)
+
+# Remove the main.cpp file from the sources.
+S = $$SOURCES
+SOURCES = \
+ tst_compliance.cpp
+for(F, S) {
+ M = $$find(F, main.cpp)
+ count(M, 0) {
+ SOURCES += $$F
+ }
+}
+
+SOURCES += \
+ main.cpp \
+ tst_websockets.cpp
+
+HEADERS += \
+ unittests.h
+
+INCLUDEPATH +=
+DEPENDPATH +=
+
+QT += testlib
+
+DEFINES += SRCDIR=\\\"$$PWD/\\\"