summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2019-06-03 13:11:37 +0200
committerLeander Beernaert <leander.beernaert@qt.io>2019-06-03 14:45:36 +0000
commit5399e01c18eea5c1d59c08fbdba84ae88c337982 (patch)
treea6453e837366586bf4e912376c3ba3e87d304952 /tests
parent8bc6feb36a471006cfa4b62189edc3d7fd67bf78 (diff)
CMake Port for QtNetworkAuth
Convert the QtNetworkAuth project to be compatible with the cmake build system. Includes tests and examples. Added header guard to twitter.h to work with CMake's moc setup. Change-Id: I0762e0b53f4e3194c969655e4c3deae21768b327 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt3
-rw-r--r--tests/auto/CMakeLists.txt12
-rw-r--r--tests/auto/abstractoauth/CMakeLists.txt20
-rw-r--r--tests/auto/oauth1/CMakeLists.txt23
-rw-r--r--tests/auto/oauth1signature/CMakeLists.txt18
-rw-r--r--tests/auto/oauth2/CMakeLists.txt23
-rw-r--r--tests/auto/oauthhttpserverreplyhandler/CMakeLists.txt19
7 files changed, 118 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 0000000..730317d
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,3 @@
+# Generated from tests.pro.
+
+add_subdirectory(auto)
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
new file mode 100644
index 0000000..fa4cd38
--- /dev/null
+++ b/tests/auto/CMakeLists.txt
@@ -0,0 +1,12 @@
+# Generated from auto.pro.
+
+## Currently doesn't build
+#add_subdirectory(cmake)
+add_subdirectory(oauth1)
+add_subdirectory(oauth2)
+add_subdirectory(oauth1signature)
+add_subdirectory(oauthhttpserverreplyhandler)
+
+if(QT_FEATURE_private_tests)
+ add_subdirectory(abstractoauth)
+endif()
diff --git a/tests/auto/abstractoauth/CMakeLists.txt b/tests/auto/abstractoauth/CMakeLists.txt
new file mode 100644
index 0000000..23e4e29
--- /dev/null
+++ b/tests/auto/abstractoauth/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from abstractoauth.pro.
+
+#####################################################################
+## tst_abstractoauth Test:
+#####################################################################
+
+add_qt_test(tst_abstractoauth
+ SOURCES
+ tst_abstractoauth.cpp
+ LIBRARIES
+ Qt::CorePrivate
+ Qt::NetworkAuthPrivate
+ PUBLIC_LIBRARIES
+ Qt::Network
+ Qt::NetworkAuth
+)
+
+#### Keys ignored in scope 1:.:.:abstractoauth.pro:<TRUE>:
+# CONFIG = "testcase"
+# TEMPLATE = "app"
diff --git a/tests/auto/oauth1/CMakeLists.txt b/tests/auto/oauth1/CMakeLists.txt
new file mode 100644
index 0000000..c4f8894
--- /dev/null
+++ b/tests/auto/oauth1/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from oauth1.pro.
+
+#####################################################################
+## tst_oauth1 Test:
+#####################################################################
+
+add_qt_test(tst_oauth1
+ SOURCES
+ ../shared/webserver.h
+ tst_oauth1.cpp
+ INCLUDE_DIRECTORIES
+ ../shared
+ LIBRARIES
+ Qt::CorePrivate
+ Qt::NetworkAuthPrivate
+ PUBLIC_LIBRARIES
+ Qt::Network
+ Qt::NetworkAuth
+)
+
+#### Keys ignored in scope 1:.:.:oauth1.pro:<TRUE>:
+# CONFIG = "testcase"
+# TEMPLATE = "app"
diff --git a/tests/auto/oauth1signature/CMakeLists.txt b/tests/auto/oauth1signature/CMakeLists.txt
new file mode 100644
index 0000000..c2bc45a
--- /dev/null
+++ b/tests/auto/oauth1signature/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from oauth1signature.pro.
+
+#####################################################################
+## tst_oauth1signature Test:
+#####################################################################
+
+add_qt_test(tst_oauth1signature
+ SOURCES
+ tst_oauth1signature.cpp
+ LIBRARIES
+ Qt::CorePrivate
+ PUBLIC_LIBRARIES
+ Qt::NetworkAuth
+)
+
+#### Keys ignored in scope 1:.:.:oauth1signature.pro:<TRUE>:
+# CONFIG = "testcase"
+# TEMPLATE = "app"
diff --git a/tests/auto/oauth2/CMakeLists.txt b/tests/auto/oauth2/CMakeLists.txt
new file mode 100644
index 0000000..d325c9f
--- /dev/null
+++ b/tests/auto/oauth2/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from oauth2.pro.
+
+#####################################################################
+## tst_oauth2 Test:
+#####################################################################
+
+add_qt_test(tst_oauth2
+ SOURCES
+ ../shared/webserver.h
+ tst_oauth2.cpp
+ INCLUDE_DIRECTORIES
+ ../shared
+ LIBRARIES
+ Qt::CorePrivate
+ Qt::NetworkAuthPrivate
+ PUBLIC_LIBRARIES
+ Qt::Network
+ Qt::NetworkAuth
+)
+
+#### Keys ignored in scope 1:.:.:oauth2.pro:<TRUE>:
+# CONFIG = "testcase"
+# TEMPLATE = "app"
diff --git a/tests/auto/oauthhttpserverreplyhandler/CMakeLists.txt b/tests/auto/oauthhttpserverreplyhandler/CMakeLists.txt
new file mode 100644
index 0000000..fd7941d
--- /dev/null
+++ b/tests/auto/oauthhttpserverreplyhandler/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from oauthhttpserverreplyhandler.pro.
+
+#####################################################################
+## tst_oauthhttpserverreplyhandler Test:
+#####################################################################
+
+add_qt_test(tst_oauthhttpserverreplyhandler
+ SOURCES
+ tst_oauthhttpserverreplyhandler.cpp
+ LIBRARIES
+ Qt::CorePrivate
+ PUBLIC_LIBRARIES
+ Qt::Network
+ Qt::NetworkAuth
+)
+
+#### Keys ignored in scope 1:.:.:oauthhttpserverreplyhandler.pro:<TRUE>:
+# CONFIG = "testcase"
+# TEMPLATE = "app"