diff options
author | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2019-11-01 10:28:02 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2019-11-01 13:28:59 +0000 |
commit | e7118bd7fd42479014c9610c90fc1cd0014fd0c8 (patch) | |
tree | 072242b3e7230ff3201230dade36eb9617d89894 /tests/auto/gui/text/qcssparser | |
parent | 8931f4fe5f0f7420d66e92375583293f0b364543 (diff) |
cmake: add tests/auto/gui/text
Fixes: QTBUG-78228
Change-Id: I3d4666a553e94de47e01d64551b8fe672994b137
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/gui/text/qcssparser')
-rw-r--r-- | tests/auto/gui/text/qcssparser/CMakeLists.txt | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/tests/auto/gui/text/qcssparser/CMakeLists.txt b/tests/auto/gui/text/qcssparser/CMakeLists.txt new file mode 100644 index 0000000000..869eebbf95 --- /dev/null +++ b/tests/auto/gui/text/qcssparser/CMakeLists.txt @@ -0,0 +1,58 @@ +# Generated from qcssparser.pro. + +if(NOT QT_FEATURE_private_tests) + return() +endif() + +##################################################################### +## tst_qcssparser Test: +##################################################################### + +# Collect test data +list(APPEND test_data "testdata") + +add_qt_test(tst_qcssparser + SOURCES + tst_qcssparser.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::Xml + TESTDATA ${test_data} +) + +#### Keys ignored in scope 1:.:.:qcssparser.pro:<TRUE>: +# _REQUIREMENTS = "qtConfig(private_tests)" + +## Scopes: +##################################################################### + +if(ANDROID) + # Resources: + set(testdata_resource_files + "testdata/scanner/comments/input" + "testdata/scanner/comments/output" + "testdata/scanner/comments2/input" + "testdata/scanner/comments2/output" + "testdata/scanner/comments3/input" + "testdata/scanner/comments3/output" + "testdata/scanner/comments4/input" + "testdata/scanner/comments4/output" + "testdata/scanner/quotedstring/input" + "testdata/scanner/quotedstring/output" + "testdata/scanner/simple/input" + "testdata/scanner/simple/output" + "testdata/scanner/unicode/input" + "testdata/scanner/unicode/output" + ) + + add_qt_resource(tst_qcssparser "testdata" + PREFIX + "/" + FILES + ${testdata_resource_files} + ) +endif() |