From 344e4ec827ba74266454800bcd29d4a5618c0e40 Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Mon, 28 Oct 2019 16:23:01 +0100 Subject: Convert remaining tests/benchmarks Change-Id: Ie7d49d4dc5bf6b2345b54f6bdfffcd974123f729 Reviewed-by: Qt CMake Build Bot Reviewed-by: Edward Welbourne Reviewed-by: Alexandru Croitor --- tests/benchmarks/widgets/CMakeLists.txt | 7 + .../benchmarks/widgets/graphicsview/CMakeLists.txt | 10 + .../widgets/graphicsview/functional/CMakeLists.txt | 2 + .../GraphicsViewBenchmark/CMakeLists.txt | 367 +++++++++++++++++++++ .../qgraphicsanchorlayout/CMakeLists.txt | 17 + .../graphicsview/qgraphicsitem/CMakeLists.txt | 17 + .../graphicsview/qgraphicslayout/CMakeLists.txt | 17 + .../qgraphicslinearlayout/CMakeLists.txt | 17 + .../graphicsview/qgraphicsscene/CMakeLists.txt | 17 + .../graphicsview/qgraphicsview/CMakeLists.txt | 55 +++ .../benchapps/chipTest/CMakeLists.txt | 48 +++ .../benchapps/moveItems/CMakeLists.txt | 13 + .../benchapps/scrolltest/CMakeLists.txt | 13 + .../graphicsview/qgraphicswidget/CMakeLists.txt | 17 + tests/benchmarks/widgets/itemviews/CMakeLists.txt | 5 + .../widgets/itemviews/qheaderview/CMakeLists.txt | 17 + .../widgets/itemviews/qlistview/CMakeLists.txt | 17 + .../widgets/itemviews/qtableview/CMakeLists.txt | 17 + tests/benchmarks/widgets/kernel/CMakeLists.txt | 4 + .../widgets/kernel/qapplication/CMakeLists.txt | 17 + .../widgets/kernel/qwidget/CMakeLists.txt | 14 + tests/benchmarks/widgets/styles/CMakeLists.txt | 5 + .../widgets/styles/qstylesheetstyle/CMakeLists.txt | 17 + tests/benchmarks/widgets/widgets/CMakeLists.txt | 3 + .../widgets/widgets/qtextbrowser/CMakeLists.txt | 17 + 25 files changed, 750 insertions(+) create mode 100644 tests/benchmarks/widgets/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/graphicsview/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/graphicsview/functional/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/graphicsview/qgraphicsanchorlayout/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/graphicsview/qgraphicsitem/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/graphicsview/qgraphicslayout/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/graphicsview/qgraphicslinearlayout/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/graphicsview/qgraphicsscene/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/graphicsview/qgraphicsview/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/graphicsview/qgraphicsview/benchapps/chipTest/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/graphicsview/qgraphicsview/benchapps/moveItems/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/graphicsview/qgraphicsview/benchapps/scrolltest/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/graphicsview/qgraphicswidget/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/itemviews/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/itemviews/qheaderview/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/itemviews/qlistview/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/itemviews/qtableview/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/kernel/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/kernel/qapplication/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/kernel/qwidget/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/styles/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/styles/qstylesheetstyle/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/widgets/CMakeLists.txt create mode 100644 tests/benchmarks/widgets/widgets/qtextbrowser/CMakeLists.txt (limited to 'tests/benchmarks/widgets') diff --git a/tests/benchmarks/widgets/CMakeLists.txt b/tests/benchmarks/widgets/CMakeLists.txt new file mode 100644 index 0000000000..bf543e664d --- /dev/null +++ b/tests/benchmarks/widgets/CMakeLists.txt @@ -0,0 +1,7 @@ +# Generated from widgets.pro. + +add_subdirectory(graphicsview) +add_subdirectory(itemviews) +add_subdirectory(kernel) +add_subdirectory(styles) +add_subdirectory(widgets) diff --git a/tests/benchmarks/widgets/graphicsview/CMakeLists.txt b/tests/benchmarks/widgets/graphicsview/CMakeLists.txt new file mode 100644 index 0000000000..3928328a98 --- /dev/null +++ b/tests/benchmarks/widgets/graphicsview/CMakeLists.txt @@ -0,0 +1,10 @@ +# Generated from graphicsview.pro. + +add_subdirectory(functional) +add_subdirectory(qgraphicsanchorlayout) +add_subdirectory(qgraphicsitem) +add_subdirectory(qgraphicslayout) +add_subdirectory(qgraphicslinearlayout) +add_subdirectory(qgraphicsscene) +add_subdirectory(qgraphicsview) +add_subdirectory(qgraphicswidget) diff --git a/tests/benchmarks/widgets/graphicsview/functional/CMakeLists.txt b/tests/benchmarks/widgets/graphicsview/functional/CMakeLists.txt new file mode 100644 index 0000000000..20e4286a6e --- /dev/null +++ b/tests/benchmarks/widgets/graphicsview/functional/CMakeLists.txt @@ -0,0 +1,2 @@ +# Generated from functional.pro. + diff --git a/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/CMakeLists.txt b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/CMakeLists.txt new file mode 100644 index 0000000000..8fac5c3497 --- /dev/null +++ b/tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/CMakeLists.txt @@ -0,0 +1,367 @@ +# Generated from GraphicsViewBenchmark.pro. + +##################################################################### +## tst_GraphicsViewBenchmark Binary: +##################################################################### + +add_qt_benchmark(tst_GraphicsViewBenchmark + SOURCES + main.cpp + widgets/abstractitemcontainer.cpp widgets/abstractitemcontainer.h + widgets/abstractitemview.cpp widgets/abstractitemview.h + widgets/abstractscrollarea.cpp widgets/abstractscrollarea.h + widgets/abstractviewitem.cpp widgets/abstractviewitem.h + widgets/backgrounditem.cpp widgets/backgrounditem.h + widgets/button.cpp widgets/button.h + widgets/commandline.cpp widgets/commandline.h + widgets/dummydatagen.cpp widgets/dummydatagen.h + widgets/gvbwidget.cpp widgets/gvbwidget.h + widgets/iconitem.cpp widgets/iconitem.h + widgets/itemrecyclinglist.cpp widgets/itemrecyclinglist.h + widgets/itemrecyclinglistview.cpp widgets/itemrecyclinglistview.h + widgets/label.cpp widgets/label.h + widgets/listitem.cpp widgets/listitem.h + widgets/listitemcache.cpp widgets/listitemcache.h + widgets/listitemcontainer.cpp widgets/listitemcontainer.h + widgets/listmodel.cpp widgets/listmodel.h + widgets/listwidget.cpp widgets/listwidget.h + widgets/mainview.cpp widgets/mainview.h + widgets/menu.cpp widgets/menu.h + widgets/recycledlistitem.cpp widgets/recycledlistitem.h + widgets/scrollbar.cpp widgets/scrollbar.h + widgets/scroller.cpp widgets/scroller.h widgets/scroller_p.h + widgets/settings.cpp widgets/settings.h + widgets/simplelist.cpp widgets/simplelist.h + widgets/simplelistview.cpp widgets/simplelistview.h + widgets/theme.cpp widgets/theme.h + widgets/themeevent.cpp widgets/themeevent.h + widgets/topbar.cpp widgets/topbar.h + INCLUDE_DIRECTORIES + widgets + PUBLIC_LIBRARIES + Qt::Gui + Qt::Svg + Qt::Test +) + +# Resources: +set_source_files_properties("resources/blue_SVG/blue_background_360x640px.svg" + PROPERTIES QT_RESOURCE_ALIAS "background.svg" +) +set_source_files_properties("resources/blue_SVG/blue_background_horisontal_640x360px.svg" + PROPERTIES QT_RESOURCE_ALIAS "background_horisontal.svg" +) +set_source_files_properties("resources/blue_SVG/blue_contact_default_icon_52x52px.svg" + PROPERTIES QT_RESOURCE_ALIAS "contact_default_icon.svg" +) +set_source_files_properties("resources/blue_SVG/blue_contact_list_divider_360x76px.svg" + PROPERTIES QT_RESOURCE_ALIAS "contact_list_divider.svg" +) +set_source_files_properties("resources/blue_SVG/blue_contact_list_highlighter_360x76px.svg" + PROPERTIES QT_RESOURCE_ALIAS "contact_list_highlighter.svg" +) +set_source_files_properties("resources/blue_SVG/blue_contact_status_idle_33x33px.svg" + PROPERTIES QT_RESOURCE_ALIAS "contact_status_idle.svg" +) +set_source_files_properties("resources/blue_SVG/blue_contact_status_offline_33x33px.svg" + PROPERTIES QT_RESOURCE_ALIAS "contact_status_offline.svg" +) +set_source_files_properties("resources/blue_SVG/blue_contact_status_online_33x33px.svg" + PROPERTIES QT_RESOURCE_ALIAS "contact_status_online.svg" +) +set_source_files_properties("resources/blue_SVG/blue_scroll_16x80px.svg" + PROPERTIES QT_RESOURCE_ALIAS "scroll.svg" +) +set_source_files_properties("resources/blue_SVG/blue_scrollbar_7x14px.svg" + PROPERTIES QT_RESOURCE_ALIAS "scrollbar.svg" +) +set_source_files_properties("resources/blue_SVG/blue_status_field_left_14x24px.svg" + PROPERTIES QT_RESOURCE_ALIAS "status_field_left.svg" +) +set_source_files_properties("resources/blue_SVG/blue_status_field_middle_14x24px.svg" + PROPERTIES QT_RESOURCE_ALIAS "status_field_middle.svg" +) +set_source_files_properties("resources/blue_SVG/blue_status_field_right_14x24px.svg" + PROPERTIES QT_RESOURCE_ALIAS "status_field_right.svg" +) +set_source_files_properties("resources/blue_SVG/blue_topbar_356x96px.svg" + PROPERTIES QT_RESOURCE_ALIAS "topbar.svg" +) +set_source_files_properties("resources/blue_SVG/blue_topbar_horisontal_636x96px.svg" + PROPERTIES QT_RESOURCE_ALIAS "topbar_horisontal.svg" +) +set_source_files_properties("resources/blue_SVG/blue_user_default_icon_68x68px.svg" + PROPERTIES QT_RESOURCE_ALIAS "user_default_icon.svg" +) +set_source_files_properties("resources/blue_SVG/blue_user_status_idle_38x38px.svg" + PROPERTIES QT_RESOURCE_ALIAS "user_status_idle.svg" +) +set_source_files_properties("resources/blue_SVG/blue_user_status_offline_38x38px.svg" + PROPERTIES QT_RESOURCE_ALIAS "user_status_offline.svg" +) +set_source_files_properties("resources/blue_SVG/blue_user_status_online_38x38px.svg" + PROPERTIES QT_RESOURCE_ALIAS "user_status_online.svg" +) +set(GraphicsViewBenchmark_resource_files + "resources/blue_SVG/blue_background_360x640px.svg" + "resources/blue_SVG/blue_background_horisontal_640x360px.svg" + "resources/blue_SVG/blue_contact_default_icon_52x52px.svg" + "resources/blue_SVG/blue_contact_list_divider_360x76px.svg" + "resources/blue_SVG/blue_contact_list_highlighter_360x76px.svg" + "resources/blue_SVG/blue_contact_status_idle_33x33px.svg" + "resources/blue_SVG/blue_contact_status_offline_33x33px.svg" + "resources/blue_SVG/blue_contact_status_online_33x33px.svg" + "resources/blue_SVG/blue_scroll_16x80px.svg" + "resources/blue_SVG/blue_scrollbar_7x14px.svg" + "resources/blue_SVG/blue_status_field_left_14x24px.svg" + "resources/blue_SVG/blue_status_field_middle_14x24px.svg" + "resources/blue_SVG/blue_status_field_right_14x24px.svg" + "resources/blue_SVG/blue_topbar_356x96px.svg" + "resources/blue_SVG/blue_topbar_horisontal_636x96px.svg" + "resources/blue_SVG/blue_user_default_icon_68x68px.svg" + "resources/blue_SVG/blue_user_status_idle_38x38px.svg" + "resources/blue_SVG/blue_user_status_offline_38x38px.svg" + "resources/blue_SVG/blue_user_status_online_38x38px.svg" +) + +add_qt_resource(tst_GraphicsViewBenchmark "GraphicsViewBenchmark" + PREFIX + "/themes/blue" + FILES + ${GraphicsViewBenchmark_resource_files} +) +set_source_files_properties("resources/blue_SVG/blue_contact_status_idle_33x33px.svg" + PROPERTIES QT_RESOURCE_ALIAS "contact_status_idle.svg" +) +set_source_files_properties("resources/blue_SVG/blue_contact_status_offline_33x33px.svg" + PROPERTIES QT_RESOURCE_ALIAS "contact_status_offline.svg" +) +set_source_files_properties("resources/blue_SVG/blue_contact_status_online_33x33px.svg" + PROPERTIES QT_RESOURCE_ALIAS "contact_status_online.svg" +) +set_source_files_properties("resources/lime_SVG/lime_background_360x640px.svg" + PROPERTIES QT_RESOURCE_ALIAS "background.svg" +) +set_source_files_properties("resources/lime_SVG/lime_background_horisontal_640x360px.svg" + PROPERTIES QT_RESOURCE_ALIAS "background_horisontal.svg" +) +set_source_files_properties("resources/lime_SVG/lime_contact_default_icon_53x53px.svg" + PROPERTIES QT_RESOURCE_ALIAS "contact_default_icon.svg" +) +set_source_files_properties("resources/lime_SVG/lime_contact_default_icon_highlight_53x53px.svg" + PROPERTIES QT_RESOURCE_ALIAS "contact_default_icon_highlight.svg" +) +set_source_files_properties("resources/lime_SVG/lime_contact_list_divider_360x76px.svg" + PROPERTIES QT_RESOURCE_ALIAS "contact_list_divider.svg" +) +set_source_files_properties("resources/lime_SVG/lime_contact_list_highlighter_357x80px.svg" + PROPERTIES QT_RESOURCE_ALIAS "contact_list_highlighter.svg" +) +set_source_files_properties("resources/lime_SVG/lime_scroll_5x80px.svg" + PROPERTIES QT_RESOURCE_ALIAS "scroll.svg" +) +set_source_files_properties("resources/lime_SVG/lime_scrollbar_5x14px.svg" + PROPERTIES QT_RESOURCE_ALIAS "scrollbar.svg" +) +set_source_files_properties("resources/lime_SVG/lime_status_field_left_14x24px.svg" + PROPERTIES QT_RESOURCE_ALIAS "status_field_left.svg" +) +set_source_files_properties("resources/lime_SVG/lime_status_field_middle_10x24px.svg" + PROPERTIES QT_RESOURCE_ALIAS "status_field_middle.svg" +) +set_source_files_properties("resources/lime_SVG/lime_status_field_right_14x24px.svg" + PROPERTIES QT_RESOURCE_ALIAS "status_field_right.svg" +) +set_source_files_properties("resources/lime_SVG/lime_topbar_356x96px.svg" + PROPERTIES QT_RESOURCE_ALIAS "topbar.svg" +) +set_source_files_properties("resources/lime_SVG/lime_topbar_horisontal_636x96px.svg" + PROPERTIES QT_RESOURCE_ALIAS "topbar_horisontal.svg" +) +set_source_files_properties("resources/lime_SVG/lime_user_default_icon_84x68px.svg" + PROPERTIES QT_RESOURCE_ALIAS "user_default_icon.svg" +) +set_source_files_properties("resources/lime_SVG/lime_user_status_idle_24x24px.svg" + PROPERTIES QT_RESOURCE_ALIAS "user_status_idle.svg" +) +set_source_files_properties("resources/lime_SVG/lime_user_status_offline_24x24px.svg" + PROPERTIES QT_RESOURCE_ALIAS "user_status_offline.svg" +) +set_source_files_properties("resources/lime_SVG/lime_user_status_online_24x24px.svg" + PROPERTIES QT_RESOURCE_ALIAS "user_status_online.svg" +) +set(GraphicsViewBenchmark1_resource_files + "resources/blue_SVG/blue_contact_status_idle_33x33px.svg" + "resources/blue_SVG/blue_contact_status_offline_33x33px.svg" + "resources/blue_SVG/blue_contact_status_online_33x33px.svg" + "resources/lime_SVG/lime_background_360x640px.svg" + "resources/lime_SVG/lime_background_horisontal_640x360px.svg" + "resources/lime_SVG/lime_contact_default_icon_53x53px.svg" + "resources/lime_SVG/lime_contact_default_icon_highlight_53x53px.svg" + "resources/lime_SVG/lime_contact_list_divider_360x76px.svg" + "resources/lime_SVG/lime_contact_list_highlighter_357x80px.svg" + "resources/lime_SVG/lime_scroll_5x80px.svg" + "resources/lime_SVG/lime_scrollbar_5x14px.svg" + "resources/lime_SVG/lime_status_field_left_14x24px.svg" + "resources/lime_SVG/lime_status_field_middle_10x24px.svg" + "resources/lime_SVG/lime_status_field_right_14x24px.svg" + "resources/lime_SVG/lime_topbar_356x96px.svg" + "resources/lime_SVG/lime_topbar_horisontal_636x96px.svg" + "resources/lime_SVG/lime_user_default_icon_84x68px.svg" + "resources/lime_SVG/lime_user_status_idle_24x24px.svg" + "resources/lime_SVG/lime_user_status_offline_24x24px.svg" + "resources/lime_SVG/lime_user_status_online_24x24px.svg" +) + +add_qt_resource(tst_GraphicsViewBenchmark "GraphicsViewBenchmark1" + PREFIX + "/themes/lime" + FILES + ${GraphicsViewBenchmark1_resource_files} +) +set_source_files_properties("resources/avatars/avatar_man_001_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_001.png" +) +set_source_files_properties("resources/avatars/avatar_man_002_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_002.png" +) +set_source_files_properties("resources/avatars/avatar_man_003_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_003.png" +) +set_source_files_properties("resources/avatars/avatar_man_004_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_004.png" +) +set_source_files_properties("resources/avatars/avatar_man_005_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_005.png" +) +set_source_files_properties("resources/avatars/avatar_man_006_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_006.png" +) +set_source_files_properties("resources/avatars/avatar_man_007_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_007.png" +) +set_source_files_properties("resources/avatars/avatar_man_008_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_008.png" +) +set_source_files_properties("resources/avatars/avatar_man_009_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_009.png" +) +set_source_files_properties("resources/avatars/avatar_man_010_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_010.png" +) +set_source_files_properties("resources/avatars/avatar_picture_001_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_011.png" +) +set_source_files_properties("resources/avatars/avatar_picture_002_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_012.png" +) +set_source_files_properties("resources/avatars/avatar_picture_003_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_013.png" +) +set_source_files_properties("resources/avatars/avatar_picture_004_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_014.png" +) +set_source_files_properties("resources/avatars/avatar_picture_005_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_015.png" +) +set_source_files_properties("resources/avatars/avatar_woman_001_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_016.png" +) +set_source_files_properties("resources/avatars/avatar_woman_002_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_017.png" +) +set_source_files_properties("resources/avatars/avatar_woman_003_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_018.png" +) +set_source_files_properties("resources/avatars/avatar_woman_004_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_019.png" +) +set_source_files_properties("resources/avatars/avatar_woman_005_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_020.png" +) +set_source_files_properties("resources/avatars/avatar_woman_006_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_021.png" +) +set_source_files_properties("resources/avatars/avatar_woman_007_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_022.png" +) +set_source_files_properties("resources/avatars/avatar_woman_008_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_023.png" +) +set_source_files_properties("resources/avatars/avatar_woman_009_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_024.png" +) +set_source_files_properties("resources/avatars/avatar_woman_010_58x58.png" + PROPERTIES QT_RESOURCE_ALIAS "avatar_025.png" +) +set(GraphicsViewBenchmark2_resource_files + "resources/avatars/avatar_man_001_58x58.png" + "resources/avatars/avatar_man_002_58x58.png" + "resources/avatars/avatar_man_003_58x58.png" + "resources/avatars/avatar_man_004_58x58.png" + "resources/avatars/avatar_man_005_58x58.png" + "resources/avatars/avatar_man_006_58x58.png" + "resources/avatars/avatar_man_007_58x58.png" + "resources/avatars/avatar_man_008_58x58.png" + "resources/avatars/avatar_man_009_58x58.png" + "resources/avatars/avatar_man_010_58x58.png" + "resources/avatars/avatar_picture_001_58x58.png" + "resources/avatars/avatar_picture_002_58x58.png" + "resources/avatars/avatar_picture_003_58x58.png" + "resources/avatars/avatar_picture_004_58x58.png" + "resources/avatars/avatar_picture_005_58x58.png" + "resources/avatars/avatar_woman_001_58x58.png" + "resources/avatars/avatar_woman_002_58x58.png" + "resources/avatars/avatar_woman_003_58x58.png" + "resources/avatars/avatar_woman_004_58x58.png" + "resources/avatars/avatar_woman_005_58x58.png" + "resources/avatars/avatar_woman_006_58x58.png" + "resources/avatars/avatar_woman_007_58x58.png" + "resources/avatars/avatar_woman_008_58x58.png" + "resources/avatars/avatar_woman_009_58x58.png" + "resources/avatars/avatar_woman_010_58x58.png" +) + +add_qt_resource(tst_GraphicsViewBenchmark "GraphicsViewBenchmark2" + PREFIX + "/avatars" + FILES + ${GraphicsViewBenchmark2_resource_files} +) +set_source_files_properties("resources/contacts/areacodes.txt" + PROPERTIES QT_RESOURCE_ALIAS "areacodes.txt" +) +set_source_files_properties("resources/contacts/firstnamesF.txt" + PROPERTIES QT_RESOURCE_ALIAS "firstnamesF.txt" +) +set_source_files_properties("resources/contacts/firstnamesM.txt" + PROPERTIES QT_RESOURCE_ALIAS "firstnamesM.txt" +) +set_source_files_properties("resources/contacts/lastnames.txt" + PROPERTIES QT_RESOURCE_ALIAS "lastnames.txt" +) +set(GraphicsViewBenchmark3_resource_files + "resources/contacts/areacodes.txt" + "resources/contacts/firstnamesF.txt" + "resources/contacts/firstnamesM.txt" + "resources/contacts/lastnames.txt" +) + +add_qt_resource(tst_GraphicsViewBenchmark "GraphicsViewBenchmark3" + PREFIX + "/contact" + FILES + ${GraphicsViewBenchmark3_resource_files} +) + + +#### Keys ignored in scope 1:.:.:GraphicsViewBenchmark.pro:: +# TEMPLATE = "app" + +## Scopes: +##################################################################### + +extend_target(tst_GraphicsViewBenchmark CONDITION TARGET Qt::OpenGL + PUBLIC_LIBRARIES + Qt::OpenGL +) diff --git a/tests/benchmarks/widgets/graphicsview/qgraphicsanchorlayout/CMakeLists.txt b/tests/benchmarks/widgets/graphicsview/qgraphicsanchorlayout/CMakeLists.txt new file mode 100644 index 0000000000..4f526cc7b1 --- /dev/null +++ b/tests/benchmarks/widgets/graphicsview/qgraphicsanchorlayout/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qgraphicsanchorlayout.pro. + +##################################################################### +## tst_bench_qgraphicsanchorlayout Binary: +##################################################################### + +add_qt_benchmark(tst_bench_qgraphicsanchorlayout + SOURCES + tst_qgraphicsanchorlayout.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:qgraphicsanchorlayout.pro:: +# TEMPLATE = "app" diff --git a/tests/benchmarks/widgets/graphicsview/qgraphicsitem/CMakeLists.txt b/tests/benchmarks/widgets/graphicsview/qgraphicsitem/CMakeLists.txt new file mode 100644 index 0000000000..a63c37e323 --- /dev/null +++ b/tests/benchmarks/widgets/graphicsview/qgraphicsitem/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qgraphicsitem.pro. + +##################################################################### +## tst_bench_qgraphicsitem Binary: +##################################################################### + +add_qt_benchmark(tst_bench_qgraphicsitem + SOURCES + tst_qgraphicsitem.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:qgraphicsitem.pro:: +# TEMPLATE = "app" diff --git a/tests/benchmarks/widgets/graphicsview/qgraphicslayout/CMakeLists.txt b/tests/benchmarks/widgets/graphicsview/qgraphicslayout/CMakeLists.txt new file mode 100644 index 0000000000..84f277df1b --- /dev/null +++ b/tests/benchmarks/widgets/graphicsview/qgraphicslayout/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qgraphicslayout.pro. + +##################################################################### +## tst_bench_qgraphicslayout Binary: +##################################################################### + +add_qt_benchmark(tst_bench_qgraphicslayout + SOURCES + tst_qgraphicslayout.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:qgraphicslayout.pro:: +# TEMPLATE = "app" diff --git a/tests/benchmarks/widgets/graphicsview/qgraphicslinearlayout/CMakeLists.txt b/tests/benchmarks/widgets/graphicsview/qgraphicslinearlayout/CMakeLists.txt new file mode 100644 index 0000000000..ab88de5bec --- /dev/null +++ b/tests/benchmarks/widgets/graphicsview/qgraphicslinearlayout/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qgraphicslinearlayout.pro. + +##################################################################### +## tst_bench_qgraphicslinearlayout Binary: +##################################################################### + +add_qt_benchmark(tst_bench_qgraphicslinearlayout + SOURCES + tst_qgraphicslinearlayout.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:qgraphicslinearlayout.pro:: +# TEMPLATE = "app" diff --git a/tests/benchmarks/widgets/graphicsview/qgraphicsscene/CMakeLists.txt b/tests/benchmarks/widgets/graphicsview/qgraphicsscene/CMakeLists.txt new file mode 100644 index 0000000000..0c72479efd --- /dev/null +++ b/tests/benchmarks/widgets/graphicsview/qgraphicsscene/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qgraphicsscene.pro. + +##################################################################### +## tst_bench_qgraphicsscene Binary: +##################################################################### + +add_qt_benchmark(tst_bench_qgraphicsscene + SOURCES + tst_qgraphicsscene.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:qgraphicsscene.pro:: +# TEMPLATE = "app" diff --git a/tests/benchmarks/widgets/graphicsview/qgraphicsview/CMakeLists.txt b/tests/benchmarks/widgets/graphicsview/qgraphicsview/CMakeLists.txt new file mode 100644 index 0000000000..51efa9a52c --- /dev/null +++ b/tests/benchmarks/widgets/graphicsview/qgraphicsview/CMakeLists.txt @@ -0,0 +1,55 @@ +# Generated from qgraphicsview.pro. + +##################################################################### +## tst_bench_qgraphicsview Binary: +##################################################################### + +add_qt_benchmark(tst_bench_qgraphicsview + SOURCES + chiptester/chip.cpp chiptester/chip.h + chiptester/chiptester.cpp chiptester/chiptester.h + tst_qgraphicsview.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test + Qt::Widgets +) + +# Resources: +set(images_resource_files + "qt4logo.png" +) + +add_qt_resource(tst_bench_qgraphicsview "images" + PREFIX + "/" + BASE + "chiptester" + FILES + ${images_resource_files} +) +set(qgraphicsview_resource_files + "images/designer.png" + "images/wine-big.jpeg" + "images/wine.jpeg" + "random.data" +) + +add_qt_resource(tst_bench_qgraphicsview "qgraphicsview" + PREFIX + "/" + FILES + ${qgraphicsview_resource_files} +) + + +#### Keys ignored in scope 1:.:.:qgraphicsview.pro:: +# TEMPLATE = "app" + +## Scopes: +##################################################################### + +extend_target(tst_bench_qgraphicsview CONDITION TARGET Qt::OpenGL + PUBLIC_LIBRARIES + Qt::OpenGL +) diff --git a/tests/benchmarks/widgets/graphicsview/qgraphicsview/benchapps/chipTest/CMakeLists.txt b/tests/benchmarks/widgets/graphicsview/qgraphicsview/benchapps/chipTest/CMakeLists.txt new file mode 100644 index 0000000000..e5e01a8434 --- /dev/null +++ b/tests/benchmarks/widgets/graphicsview/qgraphicsview/benchapps/chipTest/CMakeLists.txt @@ -0,0 +1,48 @@ +# Generated from chip.pro. + +##################################################################### +## chip Binary: +##################################################################### + +add_qt_benchmark(chip + GUI + SOURCES + chip.cpp chip.h + main.cpp + mainwindow.cpp mainwindow.h + view.cpp view.h + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +set(images_resource_files + "fileprint.png" + "qt4logo.png" + "rotateleft.png" + "rotateright.png" + "zoomin.png" + "zoomout.png" +) + +add_qt_resource(chip "images" + PREFIX + "/" + FILES + ${images_resource_files} +) + + +#### Keys ignored in scope 1:.:.:chip.pro:: +# INSTALLS = "target" "sources" +# sources.files = "$$SOURCES" "$$HEADERS" "$$RESOURCES" "*.png" "*.pro" "*.html" "*.doc" "images" +# sources.path = "$$[QT_INSTALL_EXAMPLES]/graphicsview/chip" +# target.path = "$$[QT_INSTALL_EXAMPLES]/graphicsview/chip" + +## Scopes: +##################################################################### + +extend_target(chip CONDITION TARGET Qt::OpenGL + PUBLIC_LIBRARIES + Qt::OpenGL +) diff --git a/tests/benchmarks/widgets/graphicsview/qgraphicsview/benchapps/moveItems/CMakeLists.txt b/tests/benchmarks/widgets/graphicsview/qgraphicsview/benchapps/moveItems/CMakeLists.txt new file mode 100644 index 0000000000..ce86e56722 --- /dev/null +++ b/tests/benchmarks/widgets/graphicsview/qgraphicsview/benchapps/moveItems/CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from moveItems.pro. + +##################################################################### +## moveItems Binary: +##################################################################### + +add_qt_benchmark(moveItems + GUI + SOURCES + main.cpp + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/tests/benchmarks/widgets/graphicsview/qgraphicsview/benchapps/scrolltest/CMakeLists.txt b/tests/benchmarks/widgets/graphicsview/qgraphicsview/benchapps/scrolltest/CMakeLists.txt new file mode 100644 index 0000000000..310fcd0622 --- /dev/null +++ b/tests/benchmarks/widgets/graphicsview/qgraphicsview/benchapps/scrolltest/CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from scrolltest.pro. + +##################################################################### +## scrolltest Binary: +##################################################################### + +add_qt_benchmark(scrolltest + GUI + SOURCES + main.cpp + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/tests/benchmarks/widgets/graphicsview/qgraphicswidget/CMakeLists.txt b/tests/benchmarks/widgets/graphicsview/qgraphicswidget/CMakeLists.txt new file mode 100644 index 0000000000..ab16f7081e --- /dev/null +++ b/tests/benchmarks/widgets/graphicsview/qgraphicswidget/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qgraphicswidget.pro. + +##################################################################### +## tst_bench_qgraphicswidget Binary: +##################################################################### + +add_qt_benchmark(tst_bench_qgraphicswidget + SOURCES + tst_qgraphicswidget.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:qgraphicswidget.pro:: +# TEMPLATE = "app" diff --git a/tests/benchmarks/widgets/itemviews/CMakeLists.txt b/tests/benchmarks/widgets/itemviews/CMakeLists.txt new file mode 100644 index 0000000000..76747b527d --- /dev/null +++ b/tests/benchmarks/widgets/itemviews/CMakeLists.txt @@ -0,0 +1,5 @@ +# Generated from itemviews.pro. + +add_subdirectory(qtableview) +add_subdirectory(qheaderview) +add_subdirectory(qlistview) diff --git a/tests/benchmarks/widgets/itemviews/qheaderview/CMakeLists.txt b/tests/benchmarks/widgets/itemviews/qheaderview/CMakeLists.txt new file mode 100644 index 0000000000..6d616d2579 --- /dev/null +++ b/tests/benchmarks/widgets/itemviews/qheaderview/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qheaderview.pro. + +##################################################################### +## tst_bench_qheaderview Binary: +##################################################################### + +add_qt_benchmark(tst_bench_qheaderview + SOURCES + qheaderviewbench.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:qheaderview.pro:: +# TEMPLATE = "app" diff --git a/tests/benchmarks/widgets/itemviews/qlistview/CMakeLists.txt b/tests/benchmarks/widgets/itemviews/qlistview/CMakeLists.txt new file mode 100644 index 0000000000..58062db6c0 --- /dev/null +++ b/tests/benchmarks/widgets/itemviews/qlistview/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qlistview.pro. + +##################################################################### +## tst_bench_qlistview Binary: +##################################################################### + +add_qt_benchmark(tst_bench_qlistview + SOURCES + tst_qlistview.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:qlistview.pro:: +# TEMPLATE = "app" diff --git a/tests/benchmarks/widgets/itemviews/qtableview/CMakeLists.txt b/tests/benchmarks/widgets/itemviews/qtableview/CMakeLists.txt new file mode 100644 index 0000000000..f0b47692d8 --- /dev/null +++ b/tests/benchmarks/widgets/itemviews/qtableview/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qtableview.pro. + +##################################################################### +## tst_bench_qtableview Binary: +##################################################################### + +add_qt_benchmark(tst_bench_qtableview + SOURCES + tst_qtableview.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:qtableview.pro:: +# TEMPLATE = "app" diff --git a/tests/benchmarks/widgets/kernel/CMakeLists.txt b/tests/benchmarks/widgets/kernel/CMakeLists.txt new file mode 100644 index 0000000000..b55b31fe67 --- /dev/null +++ b/tests/benchmarks/widgets/kernel/CMakeLists.txt @@ -0,0 +1,4 @@ +# Generated from kernel.pro. + +add_subdirectory(qapplication) +add_subdirectory(qwidget) diff --git a/tests/benchmarks/widgets/kernel/qapplication/CMakeLists.txt b/tests/benchmarks/widgets/kernel/qapplication/CMakeLists.txt new file mode 100644 index 0000000000..05bc480302 --- /dev/null +++ b/tests/benchmarks/widgets/kernel/qapplication/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qapplication.pro. + +##################################################################### +## tst_bench_qapplication Binary: +##################################################################### + +add_qt_benchmark(tst_bench_qapplication + SOURCES + main.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:qapplication.pro:: +# TEMPLATE = "app" diff --git a/tests/benchmarks/widgets/kernel/qwidget/CMakeLists.txt b/tests/benchmarks/widgets/kernel/qwidget/CMakeLists.txt new file mode 100644 index 0000000000..6165cba25a --- /dev/null +++ b/tests/benchmarks/widgets/kernel/qwidget/CMakeLists.txt @@ -0,0 +1,14 @@ +# Generated from qwidget.pro. + +##################################################################### +## tst_bench_qwidget Binary: +##################################################################### + +add_qt_benchmark(tst_bench_qwidget + SOURCES + tst_qwidget.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test + Qt::Widgets +) diff --git a/tests/benchmarks/widgets/styles/CMakeLists.txt b/tests/benchmarks/widgets/styles/CMakeLists.txt new file mode 100644 index 0000000000..74e57c5731 --- /dev/null +++ b/tests/benchmarks/widgets/styles/CMakeLists.txt @@ -0,0 +1,5 @@ +# Generated from styles.pro. + +if(TARGET Qt::Widgets) + add_subdirectory(qstylesheetstyle) +endif() diff --git a/tests/benchmarks/widgets/styles/qstylesheetstyle/CMakeLists.txt b/tests/benchmarks/widgets/styles/qstylesheetstyle/CMakeLists.txt new file mode 100644 index 0000000000..13aa6a1f62 --- /dev/null +++ b/tests/benchmarks/widgets/styles/qstylesheetstyle/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qstylesheetstyle.pro. + +##################################################################### +## tst_bench_qstylesheetstyle Binary: +##################################################################### + +add_qt_benchmark(tst_bench_qstylesheetstyle + SOURCES + main.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:qstylesheetstyle.pro:: +# TEMPLATE = "app" diff --git a/tests/benchmarks/widgets/widgets/CMakeLists.txt b/tests/benchmarks/widgets/widgets/CMakeLists.txt new file mode 100644 index 0000000000..81a8fccc05 --- /dev/null +++ b/tests/benchmarks/widgets/widgets/CMakeLists.txt @@ -0,0 +1,3 @@ +# Generated from widgets.pro. + +add_subdirectory(qtextbrowser) diff --git a/tests/benchmarks/widgets/widgets/qtextbrowser/CMakeLists.txt b/tests/benchmarks/widgets/widgets/qtextbrowser/CMakeLists.txt new file mode 100644 index 0000000000..983d255787 --- /dev/null +++ b/tests/benchmarks/widgets/widgets/qtextbrowser/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from qtextbrowser.pro. + +##################################################################### +## tst_bench_QTextBrowser Binary: +##################################################################### + +add_qt_benchmark(tst_bench_QTextBrowser + SOURCES + main.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:qtextbrowser.pro:: +# TEMPLATE = "app" -- cgit v1.2.3