summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/kernel/qmetamethod
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@qt.io>2019-07-03 14:39:03 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-08-01 13:36:39 +0000
commitb26b1455d75709a53f50e1d3d41c384f8e90b576 (patch)
tree74d4090126aa1829c6e637ba44015d0cf3936aac /tests/auto/corelib/kernel/qmetamethod
parenta920c16ef2f6e0bd26e136a92a4f4fe34a32eef0 (diff)
Implement SUBDIR-= conversion in pro2cmake tool
CMake doesn't support removing subdirectories therefore one need to convert all removal to conditional adds. The resulting code doesn't win a beauty contest. That is because handle_subdir works on already processed strings which means it doesn't have access to the boolean operations. As such it can not minimize the expressions, but it works and in the most simple cases it is pretty good. The patch re-generates CMakeLists.txt under tests/auto/corelib/kernel excluding qcoreapplication, qmetatype, qmimedata, qobject, qtimer, which are suffering from unrelated problems, like for example Gui, pthread linkage issues. Change-Id: I18a02f6eda7a3b41b1313211c8bc9ce277bb67be Reviewed-by: Qt CMake Build Bot Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/corelib/kernel/qmetamethod')
-rw-r--r--tests/auto/corelib/kernel/qmetamethod/CMakeLists.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/auto/corelib/kernel/qmetamethod/CMakeLists.txt b/tests/auto/corelib/kernel/qmetamethod/CMakeLists.txt
index ca41b0d676..9175343044 100644
--- a/tests/auto/corelib/kernel/qmetamethod/CMakeLists.txt
+++ b/tests/auto/corelib/kernel/qmetamethod/CMakeLists.txt
@@ -1 +1,13 @@
-add_qt_test(tst_qmetamethod SOURCES tst_qmetamethod.cpp)
+# Generated from qmetamethod.pro.
+
+#####################################################################
+## tst_qmetamethod Test:
+#####################################################################
+
+add_qt_test(tst_qmetamethod
+ SOURCES
+ tst_qmetamethod.cpp
+)
+
+#### Keys ignored in scope 1:.:.:qmetamethod.pro:<TRUE>:
+# CONFIG = "testcase"