summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-04-28 12:21:03 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-05-12 09:11:33 +0200
commit0f1ff389235018f51c3a5e287896bc4ee3e7c1e9 (patch)
tree32891bdbc417fa78f0a1761605b92c917a4eb0cb /tests
parenta8284209f33eee8a5ecdbb2cce7798e689bc8b5d (diff)
Initial port to cmake
Port the 2 main libraries, examples and tests. Task-number: QTBUG-78167 Change-Id: I0d00c9fa352a96dcd0e1f42d52e6f15680abd9ed Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt7
-rw-r--r--tests/auto/CMakeLists.txt9
-rw-r--r--tests/auto/conversion/CMakeLists.txt13
-rw-r--r--tests/auto/dumpcpp/CMakeLists.txt20
-rw-r--r--tests/auto/qaxobject/CMakeLists.txt13
-rw-r--r--tests/auto/qaxscript/CMakeLists.txt12
-rw-r--r--tests/manual/CMakeLists.txt5
-rw-r--r--tests/manual/axviewer/CMakeLists.txt69
-rw-r--r--tests/manual/dumpcpp/CMakeLists.txt26
-rw-r--r--tests/manual/testcontrol/CMakeLists.txt20
10 files changed, 194 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 0000000..2214137
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from tests.pro.
+
+if(QT_BUILD_STANDALONE_TESTS)
+ # Add qt_find_package calls for extra dependencies that need to be found when building
+ # the standalone tests here.
+endif()
+qt_build_tests()
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
new file mode 100644
index 0000000..8537f4f
--- /dev/null
+++ b/tests/auto/CMakeLists.txt
@@ -0,0 +1,9 @@
+# Generated from auto.pro.
+
+add_subdirectory(conversion)
+add_subdirectory(qaxobject)
+# add_subdirectory(dumpcpp) (needs typelib target) # special case
+#add_subdirectory(cmake) # special case
+if(NOT GCC)
+ add_subdirectory(qaxscript)
+endif()
diff --git a/tests/auto/conversion/CMakeLists.txt b/tests/auto/conversion/CMakeLists.txt
new file mode 100644
index 0000000..4aab821
--- /dev/null
+++ b/tests/auto/conversion/CMakeLists.txt
@@ -0,0 +1,13 @@
+# Generated from conversion.pro.
+
+#####################################################################
+## conversion Test:
+#####################################################################
+
+qt_add_test(conversion
+ SOURCES
+ tst_conversion.cpp
+ PUBLIC_LIBRARIES
+ Qt::AxContainer
+ Qt::Gui
+)
diff --git a/tests/auto/dumpcpp/CMakeLists.txt b/tests/auto/dumpcpp/CMakeLists.txt
new file mode 100644
index 0000000..91da6c3
--- /dev/null
+++ b/tests/auto/dumpcpp/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from dumpcpp.pro.
+
+#####################################################################
+## tst_dumpcpp Test:
+#####################################################################
+
+qt_add_test(tst_dumpcpp
+ SOURCES
+ tst_dumpcpp.cpp
+ PUBLIC_LIBRARIES
+ Qt::AxContainer
+ Qt::Gui
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:.:dumpcpp.pro:<TRUE>:
+# TYPELIBS = "$$(SystemRoot)\\system32\\ieframe.dll"
+
+## Scopes:
+#####################################################################
diff --git a/tests/auto/qaxobject/CMakeLists.txt b/tests/auto/qaxobject/CMakeLists.txt
new file mode 100644
index 0000000..7c07415
--- /dev/null
+++ b/tests/auto/qaxobject/CMakeLists.txt
@@ -0,0 +1,13 @@
+# Generated from qaxobject.pro.
+
+#####################################################################
+## qaxobject Test:
+#####################################################################
+
+qt_add_test(qaxobject
+ SOURCES
+ tst_qaxobject.cpp
+ PUBLIC_LIBRARIES
+ Qt::AxContainer
+ Qt::Gui
+)
diff --git a/tests/auto/qaxscript/CMakeLists.txt b/tests/auto/qaxscript/CMakeLists.txt
new file mode 100644
index 0000000..4312217
--- /dev/null
+++ b/tests/auto/qaxscript/CMakeLists.txt
@@ -0,0 +1,12 @@
+# Generated from qaxscript.pro.
+
+#####################################################################
+## qaxscript Test:
+#####################################################################
+
+qt_add_test(qaxscript
+ SOURCES
+ tst_qaxscript.cpp
+ PUBLIC_LIBRARIES
+ Qt::AxContainer
+)
diff --git a/tests/manual/CMakeLists.txt b/tests/manual/CMakeLists.txt
new file mode 100644
index 0000000..048232d
--- /dev/null
+++ b/tests/manual/CMakeLists.txt
@@ -0,0 +1,5 @@
+# Generated from manual.pro.
+
+add_subdirectory(axviewer)
+add_subdirectory(dumpcpp)
+add_subdirectory(testcontrol)
diff --git a/tests/manual/axviewer/CMakeLists.txt b/tests/manual/axviewer/CMakeLists.txt
new file mode 100644
index 0000000..4974bcf
--- /dev/null
+++ b/tests/manual/axviewer/CMakeLists.txt
@@ -0,0 +1,69 @@
+# Generated from axviewer.pro.
+
+#####################################################################
+## axviewer Binary:
+#####################################################################
+
+qt_add_manual_test(axviewer
+ SOURCES
+ ../shared/metaobjectdump.cpp ../shared/metaobjectdump.h
+ ../shared/textdialog.cpp ../shared/textdialog.h
+ main.cpp
+ INCLUDE_DIRECTORIES
+ ../shared
+ PUBLIC_LIBRARIES
+ Qt::AxContainer
+ Qt::Gui
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:.:axviewer.pro:<TRUE>:
+# DIAGLIB = "../../../../qtbase/tests/manual/diaglib"
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+qt_extend_target(axviewer CONDITION EXISTS _ss_DIAGLIB
+ SOURCES
+ ../../../../qtbase/tests/manual/diaglib/eventfilter.cpp ../../../../qtbase/tests/manual/diaglib/eventfilter.h
+ ../../../../qtbase/tests/manual/diaglib/nativewindowdump.h
+ ../../../../qtbase/tests/manual/diaglib/qwindowdump.cpp ../../../../qtbase/tests/manual/diaglib/qwindowdump.h
+ ../../../../qtbase/tests/manual/diaglib/textdump.cpp ../../../../qtbase/tests/manual/diaglib/textdump.h
+ DEFINES
+ QT_DIAG_LIB
+ INCLUDE_DIRECTORIES
+ ../../../../qtbase/tests/manual/diaglib
+ PUBLIC_LIBRARIES
+ Qt::CorePrivate
+ Qt::GuiPrivate
+)
+
+qt_extend_target(axviewer CONDITION (EXISTS _ss_DIAGLIB) AND (WIN32 AND NOT WINRT)
+ SOURCES
+ ../../../../qtbase/tests/manual/diaglib/nativewindowdump_win.cpp
+ PUBLIC_LIBRARIES
+ user32
+)
+
+qt_extend_target(axviewer CONDITION (EXISTS _ss_DIAGLIB) AND (NOT (WIN32 AND NOT WINRT))
+ SOURCES
+ ../../../../qtbase/tests/manual/diaglib/nativewindowdump.cpp
+)
+
+qt_extend_target(axviewer CONDITION (EXISTS _ss_DIAGLIB) AND (QT_FEATURE_widgets)
+ SOURCES
+ ../../../../qtbase/tests/manual/diaglib/debugproxystyle.cpp ../../../../qtbase/tests/manual/diaglib/debugproxystyle.h
+ ../../../../qtbase/tests/manual/diaglib/logwidget.cpp ../../../../qtbase/tests/manual/diaglib/logwidget.h
+ ../../../../qtbase/tests/manual/diaglib/qwidgetdump.cpp ../../../../qtbase/tests/manual/diaglib/qwidgetdump.h
+ PUBLIC_LIBRARIES
+ Qt::WidgetsPrivate
+)
+
+qt_extend_target(axviewer CONDITION (EXISTS _ss_DIAGLIB) AND (QT_FEATURE_opengl)
+ SOURCES
+ ../../../../qtbase/tests/manual/diaglib/glinfo.cpp ../../../../qtbase/tests/manual/diaglib/glinfo.h
+ PUBLIC_LIBRARIES
+ Qt::OpenGL
+ Qt::OpenGLWidgets
+)
diff --git a/tests/manual/dumpcpp/CMakeLists.txt b/tests/manual/dumpcpp/CMakeLists.txt
new file mode 100644
index 0000000..bc681d9
--- /dev/null
+++ b/tests/manual/dumpcpp/CMakeLists.txt
@@ -0,0 +1,26 @@
+# Generated from dumpcpp.pro.
+
+#####################################################################
+## dumpcpp Binary:
+#####################################################################
+
+qt_add_executable(dumpcpp
+ SOURCES
+ ../shared/metaobjectdump.cpp ../shared/metaobjectdump.h
+ ../shared/textdialog.cpp ../shared/textdialog.h
+ main.cpp
+ INCLUDE_DIRECTORIES
+ ../shared
+ PUBLIC_LIBRARIES
+ Qt::AxContainer
+ Qt::Gui
+ Qt::Test
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:.:dumpcpp.pro:<TRUE>:
+# TEMPLATE = "app"
+# TYPELIBS = "$$(SystemRoot)\\system32\\ieframe.dll"
+
+## Scopes:
+#####################################################################
diff --git a/tests/manual/testcontrol/CMakeLists.txt b/tests/manual/testcontrol/CMakeLists.txt
new file mode 100644
index 0000000..3115e4d
--- /dev/null
+++ b/tests/manual/testcontrol/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from testcontrol.pro.
+
+#####################################################################
+## testcontrol Binary:
+#####################################################################
+
+qt_add_executable(testcontrol
+ GUI
+ SOURCES
+ main.cpp
+ PUBLIC_LIBRARIES
+ Qt::AxServer
+ Qt::Gui
+ Qt::Widgets
+)
+qt_disable_warnings(testcontrol)
+
+#### Keys ignored in scope 1:.:.:testcontrol.pro:<TRUE>:
+# RC_FILE = "testcontrol.rc"
+# TEMPLATE = "app"