From e7118bd7fd42479014c9610c90fc1cd0014fd0c8 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Fri, 1 Nov 2019 10:28:02 +0100 Subject: cmake: add tests/auto/gui/text Fixes: QTBUG-78228 Change-Id: I3d4666a553e94de47e01d64551b8fe672994b137 Reviewed-by: Qt CMake Build Bot Reviewed-by: Simon Hausmann --- tests/auto/gui/text/CMakeLists.txt | 41 +++++++++++++++ .../qabstracttextdocumentlayout/CMakeLists.txt | 12 +++++ tests/auto/gui/text/qcssparser/CMakeLists.txt | 58 ++++++++++++++++++++++ tests/auto/gui/text/qfont/CMakeLists.txt | 36 ++++++++++++++ tests/auto/gui/text/qfontcache/CMakeLists.txt | 15 ++++++ tests/auto/gui/text/qfontdatabase/CMakeLists.txt | 44 ++++++++++++++++ tests/auto/gui/text/qfontmetrics/CMakeLists.txt | 32 ++++++++++++ tests/auto/gui/text/qglyphrun/CMakeLists.txt | 28 +++++++++++ tests/auto/gui/text/qinputcontrol/CMakeLists.txt | 14 ++++++ tests/auto/gui/text/qrawfont/CMakeLists.txt | 33 ++++++++++++ tests/auto/gui/text/qstatictext/CMakeLists.txt | 24 +++++++++ .../gui/text/qsyntaxhighlighter/CMakeLists.txt | 20 ++++++++ tests/auto/gui/text/qtextblock/CMakeLists.txt | 15 ++++++ tests/auto/gui/text/qtextcursor/CMakeLists.txt | 15 ++++++ tests/auto/gui/text/qtextdocument/CMakeLists.txt | 17 +++++++ .../gui/text/qtextdocumentfragment/CMakeLists.txt | 15 ++++++ .../gui/text/qtextdocumentlayout/CMakeLists.txt | 20 ++++++++ tests/auto/gui/text/qtextformat/CMakeLists.txt | 15 ++++++ tests/auto/gui/text/qtextlayout/CMakeLists.txt | 15 ++++++ tests/auto/gui/text/qtextlist/CMakeLists.txt | 16 ++++++ .../gui/text/qtextmarkdownimporter/CMakeLists.txt | 22 ++++++++ .../gui/text/qtextmarkdownwriter/CMakeLists.txt | 22 ++++++++ tests/auto/gui/text/qtextobject/CMakeLists.txt | 20 ++++++++ tests/auto/gui/text/qtextodfwriter/CMakeLists.txt | 17 +++++++ tests/auto/gui/text/qtextpiecetable/CMakeLists.txt | 26 ++++++++++ .../auto/gui/text/qtextscriptengine/CMakeLists.txt | 15 ++++++ .../text/qtextscriptengine/generate/CMakeLists.txt | 18 +++++++ tests/auto/gui/text/qtexttable/CMakeLists.txt | 22 ++++++++ tests/auto/gui/text/qzip/CMakeLists.txt | 36 ++++++++++++++ 29 files changed, 683 insertions(+) create mode 100644 tests/auto/gui/text/CMakeLists.txt create mode 100644 tests/auto/gui/text/qabstracttextdocumentlayout/CMakeLists.txt create mode 100644 tests/auto/gui/text/qcssparser/CMakeLists.txt create mode 100644 tests/auto/gui/text/qfont/CMakeLists.txt create mode 100644 tests/auto/gui/text/qfontcache/CMakeLists.txt create mode 100644 tests/auto/gui/text/qfontdatabase/CMakeLists.txt create mode 100644 tests/auto/gui/text/qfontmetrics/CMakeLists.txt create mode 100644 tests/auto/gui/text/qglyphrun/CMakeLists.txt create mode 100644 tests/auto/gui/text/qinputcontrol/CMakeLists.txt create mode 100644 tests/auto/gui/text/qrawfont/CMakeLists.txt create mode 100644 tests/auto/gui/text/qstatictext/CMakeLists.txt create mode 100644 tests/auto/gui/text/qsyntaxhighlighter/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextblock/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextcursor/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextdocument/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextdocumentfragment/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextdocumentlayout/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextformat/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextlayout/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextlist/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextmarkdownimporter/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextmarkdownwriter/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextobject/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextodfwriter/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextpiecetable/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextscriptengine/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtextscriptengine/generate/CMakeLists.txt create mode 100644 tests/auto/gui/text/qtexttable/CMakeLists.txt create mode 100644 tests/auto/gui/text/qzip/CMakeLists.txt (limited to 'tests/auto/gui/text') diff --git a/tests/auto/gui/text/CMakeLists.txt b/tests/auto/gui/text/CMakeLists.txt new file mode 100644 index 0000000000..8326190831 --- /dev/null +++ b/tests/auto/gui/text/CMakeLists.txt @@ -0,0 +1,41 @@ +# Generated from text.pro. + +add_subdirectory(qabstracttextdocumentlayout) +add_subdirectory(qfont) +add_subdirectory(qfontdatabase) +add_subdirectory(qfontmetrics) +add_subdirectory(qglyphrun) +add_subdirectory(qrawfont) +add_subdirectory(qstatictext) +add_subdirectory(qsyntaxhighlighter) +add_subdirectory(qtextblock) +add_subdirectory(qtextcursor) +add_subdirectory(qtextdocumentfragment) +add_subdirectory(qtextdocumentlayout) +add_subdirectory(qtextformat) +add_subdirectory(qtextlist) +add_subdirectory(qtextobject) +add_subdirectory(qtextscriptengine) +add_subdirectory(qtexttable) +add_subdirectory(qinputcontrol) +if(QT_FEATURE_private_tests AND TARGET Qt::Xml) + add_subdirectory(qcssparser) +endif() +if(QT_FEATURE_private_tests) + add_subdirectory(qfontcache) + add_subdirectory(qtextlayout) + add_subdirectory(qzip) + add_subdirectory(qtextodfwriter) +endif() +if(TARGET Qt::Xml) + add_subdirectory(qtextdocument) +endif() +if(QT_FEATURE_private_tests AND UNIX) + add_subdirectory(qtextpiecetable) +endif() +if(QT_FEATURE_textmarkdownreader) + add_subdirectory(qtextmarkdownimporter) +endif() +if(QT_FEATURE_private_tests AND QT_FEATURE_textmarkdownwriter) + add_subdirectory(qtextmarkdownwriter) +endif() diff --git a/tests/auto/gui/text/qabstracttextdocumentlayout/CMakeLists.txt b/tests/auto/gui/text/qabstracttextdocumentlayout/CMakeLists.txt new file mode 100644 index 0000000000..62d4ce9d32 --- /dev/null +++ b/tests/auto/gui/text/qabstracttextdocumentlayout/CMakeLists.txt @@ -0,0 +1,12 @@ +# Generated from qabstracttextdocumentlayout.pro. + +##################################################################### +## tst_qabstracttextdocumentlayout Test: +##################################################################### + +add_qt_test(tst_qabstracttextdocumentlayout + SOURCES + tst_qabstracttextdocumentlayout.cpp + PUBLIC_LIBRARIES + Qt::Gui +) 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:: +# _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() diff --git a/tests/auto/gui/text/qfont/CMakeLists.txt b/tests/auto/gui/text/qfont/CMakeLists.txt new file mode 100644 index 0000000000..1f063ab8b2 --- /dev/null +++ b/tests/auto/gui/text/qfont/CMakeLists.txt @@ -0,0 +1,36 @@ +# Generated from qfont.pro. + +##################################################################### +## tst_qfont Test: +##################################################################### + +add_qt_test(tst_qfont + SOURCES + tst_qfont.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +set(testfont_resource_files + "weirdfont.otf" +) + +add_qt_resource(tst_qfont "testfont" + PREFIX + "/" + FILES + ${testfont_resource_files} +) + + +## Scopes: +##################################################################### + +extend_target(tst_qfont CONDITION TARGET Qt::Widgets + PUBLIC_LIBRARIES + Qt::Widgets +) diff --git a/tests/auto/gui/text/qfontcache/CMakeLists.txt b/tests/auto/gui/text/qfontcache/CMakeLists.txt new file mode 100644 index 0000000000..dc5e76c91d --- /dev/null +++ b/tests/auto/gui/text/qfontcache/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from qfontcache.pro. + +##################################################################### +## tst_qfontcache Test: +##################################################################### + +add_qt_test(tst_qfontcache + SOURCES + tst_qfontcache.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/tests/auto/gui/text/qfontdatabase/CMakeLists.txt b/tests/auto/gui/text/qfontdatabase/CMakeLists.txt new file mode 100644 index 0000000000..641a2475f0 --- /dev/null +++ b/tests/auto/gui/text/qfontdatabase/CMakeLists.txt @@ -0,0 +1,44 @@ +# Generated from qfontdatabase.pro. + +##################################################################### +## tst_qfontdatabase Test: +##################################################################### + +# Collect test data +list(APPEND test_data "LED_REAL.TTF") + +add_qt_test(tst_qfontdatabase + SOURCES + tst_qfontdatabase.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + TESTDATA ${test_data} +) + +# Resources: +set_source_files_properties("../../../shared/resources/testfont.ttf" + PROPERTIES QT_RESOURCE_ALIAS "testfont.ttf" +) +set_source_files_properties("../../../shared/resources/testfont_condensed.ttf" + PROPERTIES QT_RESOURCE_ALIAS "testfont_condensed.ttf" +) +set_source_files_properties("../../../shared/resources/testfont_italic.ttf" + PROPERTIES QT_RESOURCE_ALIAS "testfont_italic.ttf" +) +set(testdata_resource_files + "../../../shared/resources/testfont.ttf" + "../../../shared/resources/testfont_condensed.ttf" + "../../../shared/resources/testfont_italic.ttf" + "LED_REAL.TTF" +) + +add_qt_resource(tst_qfontdatabase "testdata" + PREFIX + "/" + FILES + ${testdata_resource_files} +) + diff --git a/tests/auto/gui/text/qfontmetrics/CMakeLists.txt b/tests/auto/gui/text/qfontmetrics/CMakeLists.txt new file mode 100644 index 0000000000..10ba5dd791 --- /dev/null +++ b/tests/auto/gui/text/qfontmetrics/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from qfontmetrics.pro. + +##################################################################### +## tst_qfontmetrics Test: +##################################################################### + +add_qt_test(tst_qfontmetrics + SOURCES + tst_qfontmetrics.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +set_source_files_properties("../../../shared/resources/testfont.ttf" + PROPERTIES QT_RESOURCE_ALIAS "testfont.ttf" +) +set(testfont_resource_files + "../../../shared/resources/testfont.ttf" + "ucs4font.ttf" +) + +add_qt_resource(tst_qfontmetrics "testfont" + PREFIX + "/fonts" + FILES + ${testfont_resource_files} +) + diff --git a/tests/auto/gui/text/qglyphrun/CMakeLists.txt b/tests/auto/gui/text/qglyphrun/CMakeLists.txt new file mode 100644 index 0000000000..8efcfc0cf9 --- /dev/null +++ b/tests/auto/gui/text/qglyphrun/CMakeLists.txt @@ -0,0 +1,28 @@ +# Generated from qglyphrun.pro. + +##################################################################### +## tst_qglyphrun Test: +##################################################################### + +add_qt_test(tst_qglyphrun + SOURCES + tst_qglyphrun.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +set_source_files_properties("../../../shared/resources/test.ttf" + PROPERTIES QT_RESOURCE_ALIAS "test.ttf" +) +set(testdata_resource_files + "../../../shared/resources/test.ttf" +) + +add_qt_resource(tst_qglyphrun "testdata" + PREFIX + "/" + FILES + ${testdata_resource_files} +) + diff --git a/tests/auto/gui/text/qinputcontrol/CMakeLists.txt b/tests/auto/gui/text/qinputcontrol/CMakeLists.txt new file mode 100644 index 0000000000..8c379bffc3 --- /dev/null +++ b/tests/auto/gui/text/qinputcontrol/CMakeLists.txt @@ -0,0 +1,14 @@ +# Generated from qinputcontrol.pro. + +##################################################################### +## tst_qinputcontrol Test: +##################################################################### + +add_qt_test(tst_qinputcontrol + SOURCES + tst_qinputcontrol.cpp + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/tests/auto/gui/text/qrawfont/CMakeLists.txt b/tests/auto/gui/text/qrawfont/CMakeLists.txt new file mode 100644 index 0000000000..41093ee603 --- /dev/null +++ b/tests/auto/gui/text/qrawfont/CMakeLists.txt @@ -0,0 +1,33 @@ +# Generated from qrawfont.pro. + +##################################################################### +## tst_qrawfont Test: +##################################################################### + +add_qt_test(tst_qrawfont + SOURCES + tst_qrawfont.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +set_source_files_properties("../../../shared/resources/testfont.ttf" + PROPERTIES QT_RESOURCE_ALIAS "testfont.ttf" +) +set(testdata_resource_files + "../../../shared/resources/testfont.ttf" + "testfont_bold_italic.ttf" + "testfont_os2_v1.ttf" +) + +add_qt_resource(tst_qrawfont "testdata" + PREFIX + "/" + FILES + ${testdata_resource_files} +) + diff --git a/tests/auto/gui/text/qstatictext/CMakeLists.txt b/tests/auto/gui/text/qstatictext/CMakeLists.txt new file mode 100644 index 0000000000..c2b53e731c --- /dev/null +++ b/tests/auto/gui/text/qstatictext/CMakeLists.txt @@ -0,0 +1,24 @@ +# Generated from qstatictext.pro. + +##################################################################### +## tst_qstatictext Test: +##################################################################### + +add_qt_test(tst_qstatictext + SOURCES + tst_qstatictext.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +## Scopes: +##################################################################### + +extend_target(tst_qstatictext CONDITION QT_FEATURE_private_tests + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui +) diff --git a/tests/auto/gui/text/qsyntaxhighlighter/CMakeLists.txt b/tests/auto/gui/text/qsyntaxhighlighter/CMakeLists.txt new file mode 100644 index 0000000000..c4ea8b4a1e --- /dev/null +++ b/tests/auto/gui/text/qsyntaxhighlighter/CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from qsyntaxhighlighter.pro. + +##################################################################### +## tst_qsyntaxhighlighter Test: +##################################################################### + +add_qt_test(tst_qsyntaxhighlighter + SOURCES + tst_qsyntaxhighlighter.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +## Scopes: +##################################################################### + +extend_target(tst_qsyntaxhighlighter CONDITION TARGET Qt::Widgets + PUBLIC_LIBRARIES + Qt::Widgets +) diff --git a/tests/auto/gui/text/qtextblock/CMakeLists.txt b/tests/auto/gui/text/qtextblock/CMakeLists.txt new file mode 100644 index 0000000000..ca461a37d5 --- /dev/null +++ b/tests/auto/gui/text/qtextblock/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from qtextblock.pro. + +##################################################################### +## tst_qtextblock Test: +##################################################################### + +add_qt_test(tst_qtextblock + SOURCES + tst_qtextblock.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/tests/auto/gui/text/qtextcursor/CMakeLists.txt b/tests/auto/gui/text/qtextcursor/CMakeLists.txt new file mode 100644 index 0000000000..2e129d0262 --- /dev/null +++ b/tests/auto/gui/text/qtextcursor/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from qtextcursor.pro. + +##################################################################### +## tst_qtextcursor Test: +##################################################################### + +add_qt_test(tst_qtextcursor + SOURCES + tst_qtextcursor.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/tests/auto/gui/text/qtextdocument/CMakeLists.txt b/tests/auto/gui/text/qtextdocument/CMakeLists.txt new file mode 100644 index 0000000000..5ac40ee8b6 --- /dev/null +++ b/tests/auto/gui/text/qtextdocument/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qtextdocument.pro. + +##################################################################### +## tst_qtextdocument Test: +##################################################################### + +add_qt_test(tst_qtextdocument + SOURCES + common.h + tst_qtextdocument.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::Xml +) diff --git a/tests/auto/gui/text/qtextdocumentfragment/CMakeLists.txt b/tests/auto/gui/text/qtextdocumentfragment/CMakeLists.txt new file mode 100644 index 0000000000..09469b7c7f --- /dev/null +++ b/tests/auto/gui/text/qtextdocumentfragment/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from qtextdocumentfragment.pro. + +##################################################################### +## tst_qtextdocumentfragment Test: +##################################################################### + +add_qt_test(tst_qtextdocumentfragment + SOURCES + tst_qtextdocumentfragment.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/tests/auto/gui/text/qtextdocumentlayout/CMakeLists.txt b/tests/auto/gui/text/qtextdocumentlayout/CMakeLists.txt new file mode 100644 index 0000000000..c7212209ee --- /dev/null +++ b/tests/auto/gui/text/qtextdocumentlayout/CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from qtextdocumentlayout.pro. + +##################################################################### +## tst_qtextdocumentlayout Test: +##################################################################### + +add_qt_test(tst_qtextdocumentlayout + SOURCES + tst_qtextdocumentlayout.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +## Scopes: +##################################################################### + +extend_target(tst_qtextdocumentlayout CONDITION TARGET Qt::Widgets + PUBLIC_LIBRARIES + Qt::Widgets +) diff --git a/tests/auto/gui/text/qtextformat/CMakeLists.txt b/tests/auto/gui/text/qtextformat/CMakeLists.txt new file mode 100644 index 0000000000..5635141476 --- /dev/null +++ b/tests/auto/gui/text/qtextformat/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from qtextformat.pro. + +##################################################################### +## tst_qtextformat Test: +##################################################################### + +add_qt_test(tst_qtextformat + SOURCES + tst_qtextformat.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/tests/auto/gui/text/qtextlayout/CMakeLists.txt b/tests/auto/gui/text/qtextlayout/CMakeLists.txt new file mode 100644 index 0000000000..b43c009b99 --- /dev/null +++ b/tests/auto/gui/text/qtextlayout/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from qtextlayout.pro. + +##################################################################### +## tst_qtextlayout Test: +##################################################################### + +add_qt_test(tst_qtextlayout + SOURCES + tst_qtextlayout.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/tests/auto/gui/text/qtextlist/CMakeLists.txt b/tests/auto/gui/text/qtextlist/CMakeLists.txt new file mode 100644 index 0000000000..80e4623ce5 --- /dev/null +++ b/tests/auto/gui/text/qtextlist/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from qtextlist.pro. + +##################################################################### +## tst_qtextlist Test: +##################################################################### + +add_qt_test(tst_qtextlist + SOURCES + ../qtextdocument/common.h + tst_qtextlist.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/tests/auto/gui/text/qtextmarkdownimporter/CMakeLists.txt b/tests/auto/gui/text/qtextmarkdownimporter/CMakeLists.txt new file mode 100644 index 0000000000..4e1f54a117 --- /dev/null +++ b/tests/auto/gui/text/qtextmarkdownimporter/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from qtextmarkdownimporter.pro. + +##################################################################### +## tst_qtextmarkdownimporter Test: +##################################################################### + +# Collect test data +list(APPEND test_data "data/thematicBreaks.md") +list(APPEND test_data "data/headingBulletsContinuations.md") + +add_qt_test(tst_qtextmarkdownimporter + SOURCES + tst_qtextmarkdownimporter.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + TESTDATA ${test_data} +) diff --git a/tests/auto/gui/text/qtextmarkdownwriter/CMakeLists.txt b/tests/auto/gui/text/qtextmarkdownwriter/CMakeLists.txt new file mode 100644 index 0000000000..c7695bff97 --- /dev/null +++ b/tests/auto/gui/text/qtextmarkdownwriter/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from qtextmarkdownwriter.pro. + +##################################################################### +## tst_qtextmarkdownwriter Test: +##################################################################### + +# Collect test data +list(APPEND test_data "data/example.md") +list(APPEND test_data "data/blockquotes.md") + +add_qt_test(tst_qtextmarkdownwriter + SOURCES + tst_qtextmarkdownwriter.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + TESTDATA ${test_data} +) diff --git a/tests/auto/gui/text/qtextobject/CMakeLists.txt b/tests/auto/gui/text/qtextobject/CMakeLists.txt new file mode 100644 index 0000000000..b8d7f7b548 --- /dev/null +++ b/tests/auto/gui/text/qtextobject/CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from qtextobject.pro. + +##################################################################### +## tst_qtextobject Test: +##################################################################### + +add_qt_test(tst_qtextobject + SOURCES + tst_qtextobject.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +## Scopes: +##################################################################### + +extend_target(tst_qtextobject CONDITION TARGET Qt::Widgets + PUBLIC_LIBRARIES + Qt::Widgets +) diff --git a/tests/auto/gui/text/qtextodfwriter/CMakeLists.txt b/tests/auto/gui/text/qtextodfwriter/CMakeLists.txt new file mode 100644 index 0000000000..f21648cfc7 --- /dev/null +++ b/tests/auto/gui/text/qtextodfwriter/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qtextodfwriter.pro. + +##################################################################### +## tst_qtextodfwriter Test: +##################################################################### + +add_qt_test(tst_qtextodfwriter + SOURCES + tst_qtextodfwriter.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\" + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/tests/auto/gui/text/qtextpiecetable/CMakeLists.txt b/tests/auto/gui/text/qtextpiecetable/CMakeLists.txt new file mode 100644 index 0000000000..a1caa47e4e --- /dev/null +++ b/tests/auto/gui/text/qtextpiecetable/CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from qtextpiecetable.pro. + +if(WIN32) + return() +endif() +if(NOT QT_FEATURE_private_tests) + return() +endif() + +##################################################################### +## tst_qtextpiecetable Test: +##################################################################### + +add_qt_test(tst_qtextpiecetable + SOURCES + ../qtextdocument/common.h + tst_qtextpiecetable.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) + +#### Keys ignored in scope 1:.:.:qtextpiecetable.pro:: +# _REQUIREMENTS = "!win32" "qtConfig(private_tests)" diff --git a/tests/auto/gui/text/qtextscriptengine/CMakeLists.txt b/tests/auto/gui/text/qtextscriptengine/CMakeLists.txt new file mode 100644 index 0000000000..1a3b8cfa92 --- /dev/null +++ b/tests/auto/gui/text/qtextscriptengine/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from qtextscriptengine.pro. + +##################################################################### +## tst_qtextscriptengine Test: +##################################################################### + +add_qt_test(tst_qtextscriptengine + SOURCES + tst_qtextscriptengine.cpp + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/tests/auto/gui/text/qtextscriptengine/generate/CMakeLists.txt b/tests/auto/gui/text/qtextscriptengine/generate/CMakeLists.txt new file mode 100644 index 0000000000..bdda60149c --- /dev/null +++ b/tests/auto/gui/text/qtextscriptengine/generate/CMakeLists.txt @@ -0,0 +1,18 @@ +# Generated from generate.pro. + +##################################################################### +## generate Binary: +##################################################################### + +add_qt_executable(generate + GUI + SOURCES + main.cpp + INCLUDE_DIRECTORIES + . + /usr/include/freetype2 + LIBRARIES + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/tests/auto/gui/text/qtexttable/CMakeLists.txt b/tests/auto/gui/text/qtexttable/CMakeLists.txt new file mode 100644 index 0000000000..219a868953 --- /dev/null +++ b/tests/auto/gui/text/qtexttable/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from qtexttable.pro. + +##################################################################### +## tst_qtexttable Test: +##################################################################### + +add_qt_test(tst_qtexttable + SOURCES + tst_qtexttable.cpp + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui +) + +## Scopes: +##################################################################### + +extend_target(tst_qtexttable CONDITION TARGET Qt::Widgets + PUBLIC_LIBRARIES + Qt::Widgets +) diff --git a/tests/auto/gui/text/qzip/CMakeLists.txt b/tests/auto/gui/text/qzip/CMakeLists.txt new file mode 100644 index 0000000000..034e52e1fd --- /dev/null +++ b/tests/auto/gui/text/qzip/CMakeLists.txt @@ -0,0 +1,36 @@ +# Generated from qzip.pro. + +##################################################################### +## tst_qzip Test: +##################################################################### + +# Collect test data +list(APPEND test_data "testdata") + +add_qt_test(tst_qzip + SOURCES + tst_qzip.cpp + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + TESTDATA ${test_data} +) + +## Scopes: +##################################################################### + +if(ANDROID) + # Resources: + set(testdata_resource_files + "testdata/symlink.zip" + "testdata/test.zip" + ) + + add_qt_resource(tst_qzip "testdata" + PREFIX + "/" + FILES + ${testdata_resource_files} + ) +endif() -- cgit v1.2.3