aboutsummaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: f7a265ef8fe10c9925a6f234be78de48aa8ccde5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
# Generated from src.pro.

cmake_minimum_required(VERSION 3.15.0)

qt_internal_add_executable(qmlbench
    OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" # special case
    SOURCES
        benchmark.h
        benchmarkrunner.cpp benchmarkrunner.h
        main.cpp
        options.h
        qmlbench.cpp qmlbench.h
        resultrecorder.cpp resultrecorder.h
        testmodel.cpp testmodel.h
    PUBLIC_LIBRARIES
        Qt::Gui
        Qt::Quick
        Qt::Quick3D
)

# Resources:
set(qmlbench_resource_files
    "3rdparty/v8-bench.js"
    "Benchmark.qml"
    "CreationBenchmark.qml"
    "Shell_SustainedFpsWithCount.qml"
    "Shell_SustainedFpsWithStaticCount.qml"
    "Shell_TotalFramesWithStaticCount.qml"
    "V8Benchmark.qml"
    "benchmarks/auto/animations/comparison/moving-images-animators.qml"
    "benchmarks/auto/animations/comparison/moving-images-script.qml"
    "benchmarks/auto/animations/comparison/moving-images-animations.qml"
    "benchmarks/auto/animations/comparison/moving-images-simple.qml"
    "benchmarks/auto/bindings/compositesingleton.qml"
    "benchmarks/auto/canvas/canvas_text_simple.qml"
    "benchmarks/auto/changes/changing_over_isolated.qml"
    "benchmarks/auto/changes/changing_over_isolated_with_clip.qml"
    "benchmarks/auto/changes/changing_over_isolated_with_clip_rotated.qml"
    "benchmarks/auto/changes/changing_text_oneofmany.qml"
    "benchmarks/auto/changes/changing_texts.qml"
    "benchmarks/auto/creation/layouts/delegates_column.qml"
    "benchmarks/auto/creation/layouts/delegates_columnlayout.qml"
    "benchmarks/auto/creation/layouts/delegates_flow.qml"
    "benchmarks/auto/creation/layouts/delegates_grid.qml"
    "benchmarks/auto/creation/layouts/delegates_gridlayout.qml"
    "benchmarks/auto/creation/layouts/delegates_row.qml"
    "benchmarks/auto/creation/layouts/delegates_rowlayout.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_bool.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_double.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_int.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_real.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_string.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_url.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_var_array.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_var_bool.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_var_int.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_var_object.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_var_string.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_array.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_bool.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_int.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_object.qml"
    "benchmarks/auto/creation/qml.basictypes/delegates_basictype_variant_string.qml"
    "benchmarks/auto/creation/qml.modelaccess/modelaccess_bool.qml"
    "benchmarks/auto/creation/qml.modelaccess/modelaccess_bytearray.qml"
    "benchmarks/auto/creation/qml.modelaccess/modelaccess_color.qml"
    "benchmarks/auto/creation/qml.modelaccess/modelaccess_datetime.qml"
    "benchmarks/auto/creation/qml.modelaccess/modelaccess_int.qml"
    "benchmarks/auto/creation/qml.modelaccess/modelaccess_jsvalue.qml"
    "benchmarks/auto/creation/qml.modelaccess/modelaccess_point.qml"
    "benchmarks/auto/creation/qml.modelaccess/modelaccess_real.qml"
    "benchmarks/auto/creation/qml.modelaccess/modelaccess_rect.qml"
    "benchmarks/auto/creation/qml.modelaccess/modelaccess_size.qml"
    "benchmarks/auto/creation/qml.modelaccess/modelaccess_string.qml"
    "benchmarks/auto/creation/qml.modelaccess/modelaccess_url.qml"
    "benchmarks/auto/creation/qtgraphicaleffects/delegates_dropshadow.qml"
    "benchmarks/auto/creation/qtgraphicaleffects/delegates_lineargradient.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_color.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_color_argb.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_color_name.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_date.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_date_object.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_matrix4x4.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_point.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_quaternion.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_rect.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_size.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_var_size.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_variant_size.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_vector2d.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_vector3d.qml"
    "benchmarks/auto/creation/quick.basictypes/delegates_basictype_vector4d.qml"
    "benchmarks/auto/creation/quick.canvas/delegates_canvas_fbo_cooperative.qml"
    "benchmarks/auto/creation/quick.canvas/delegates_canvas_fbo_immediate.qml"
    "benchmarks/auto/creation/quick.canvas/delegates_canvas_fbo_threaded.qml"
    "benchmarks/auto/creation/quick.canvas/delegates_canvas_image_cooperative.qml"
    "benchmarks/auto/creation/quick.canvas/delegates_canvas_image_immediate.qml"
    "benchmarks/auto/creation/quick.canvas/delegates_canvas_image_threaded.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_busyindicator.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_button.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_checkbox.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_combobox.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_dial.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_itemdelegate.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_label.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_menu_custom.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_menuitem.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_progressbar.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_radiobutton.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_scrollbar.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_scrollview.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_slider.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_spinbox.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_switch.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_tabbar.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_textarea.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_textfield.qml"
    "benchmarks/auto/creation/quick.controls2/delegates_tumbler.qml"
    "benchmarks/auto/creation/quick.image/delegates_image.qml"
    "benchmarks/auto/creation/quick.image/delegates_image_alpha.qml"
    "benchmarks/auto/creation/quick.image/delegates_image_antialiased.qml"
    "benchmarks/auto/creation/quick.image/delegates_image_async.qml"
    "benchmarks/auto/creation/quick.image/delegates_image_solid.qml"
    "benchmarks/auto/creation/quick.item/delegates_item.qml"
    "benchmarks/auto/creation/quick.item/delegates_item_bindings.qml"
    "benchmarks/auto/creation/quick.item/delegates_item_childrenRect.qml"
    "benchmarks/auto/creation/quick.item/delegates_item_empty.qml"
    "benchmarks/auto/creation/quick.item/delegates_item_empty_jscreation.qml"
    "benchmarks/auto/creation/quick.item/delegates_item_script.qml"
    "benchmarks/auto/creation/quick.item/delegates_item_states.qml"
    "benchmarks/auto/creation/quick.item/delegates_item_z.qml"
    "benchmarks/auto/creation/quick.item/item_anchors.qml"
    "benchmarks/auto/creation/quick.item/item_size.qml"
    "benchmarks/auto/creation/quick.rectangle/delegates_rect.qml"
    "benchmarks/auto/creation/quick.rectangle/delegates_rect_blended.qml"
    "benchmarks/auto/creation/quick.rectangle/delegates_rect_border.qml"
    "benchmarks/auto/creation/quick.rectangle/delegates_rect_gradient.qml"
    "benchmarks/auto/creation/quick.rectangle/delegates_rect_radius.qml"
    "benchmarks/auto/creation/quick.text/comparison/delegates_kerning.qml"
    "benchmarks/auto/creation/quick.text/comparison/delegates_nokerning.qml"
    "benchmarks/auto/creation/quick.text/comparison/delegates_noshaping.qml"
    "benchmarks/auto/creation/quick.text/delegates_longtext.qml"
    "benchmarks/auto/creation/quick.text/delegates_longtext_arabic.qml"
    "benchmarks/auto/creation/quick.text/delegates_longtext_chinese.qml"
    "benchmarks/auto/creation/quick.text/delegates_longtext_hindi.qml"
    "benchmarks/auto/creation/quick.text/delegates_text.qml"
    "benchmarks/auto/creation/quick.text/delegates_text_arabic.qml"
    "benchmarks/auto/creation/quick.text/delegates_text_chinese.qml"
    "benchmarks/auto/creation/quick.text/delegates_text_decoration_bold.qml"
    "benchmarks/auto/creation/quick.text/delegates_text_decoration_italic.qml"
    "benchmarks/auto/creation/quick.text/delegates_text_decoration_strikeout.qml"
    "benchmarks/auto/creation/quick.text/delegates_text_decoration_underline.qml"
    "benchmarks/auto/creation/quick.text/delegates_text_elide.qml"
    "benchmarks/auto/creation/quick.text/delegates_text_hindi.qml"
    "benchmarks/auto/creation/quick.text/delegates_text_nativerendering.qml"
    "benchmarks/auto/creation/quick.text/delegates_text_plain.qml"
    "benchmarks/auto/creation/quick.text/delegates_text_richtext.qml"
    "benchmarks/auto/creation/quick.text/delegates_text_styled.qml"
    "benchmarks/auto/creation/quick.text/delegates_textedit.qml"
    "benchmarks/auto/creation/quick.text/delegates_textinput.qml"
    "benchmarks/auto/creation/quick.transforms/delegates_item_rotated.qml"
    "benchmarks/auto/creation/quick.transforms/delegates_item_rotated_transform.qml"
    "benchmarks/auto/creation/quick.transforms/delegates_item_scaled.qml"
    "benchmarks/auto/creation/quick.transforms/delegates_item_scaled_transform.qml"
    "benchmarks/auto/creation/quick.transforms/delegates_item_translated.qml"
    "benchmarks/auto/creation/quick.validators/delegates_doublevalidator.qml"
    "benchmarks/auto/creation/quick.validators/delegates_intvalidator.qml"
    "benchmarks/auto/creation/quick.validators/delegates_regexpvalidator.qml"
    "benchmarks/auto/creation/quick/delegates_flickable.qml"
    "benchmarks/auto/creation/quick/delegates_flipable.qml"
    "benchmarks/auto/creation/quick/delegates_focusscope.qml"
    "benchmarks/auto/creation/quick/delegates_fontloader.qml"
    "benchmarks/auto/creation/quick/delegates_fontmetrics.qml"
    "benchmarks/auto/creation/quick/delegates_gridview.qml"
    "benchmarks/auto/creation/quick/delegates_listview.qml"
    "benchmarks/auto/creation/quick/delegates_loader.qml"
    "benchmarks/auto/creation/quick/delegates_mousearea.qml"
    "benchmarks/auto/creation/quick/delegates_multipointtoucharea.qml"
    "benchmarks/auto/creation/quick/delegates_pathview.qml"
    "benchmarks/auto/creation/quick/delegates_pincharea.qml"
    "benchmarks/auto/creation/quick/delegates_qobject.qml"
    "benchmarks/auto/creation/quick/delegates_qobject_large_array.qml"
    "benchmarks/auto/creation/quick/delegates_shadereffect.qml"
    "benchmarks/auto/creation/quick/delegates_shadereffect_props.qml"
    "benchmarks/auto/creation/quick/delegates_shadereffectsource.qml"
    "benchmarks/auto/creation/quick/delegates_textmetrics.qml"
    "benchmarks/auto/creation/quick/red.frag"
    "benchmarks/auto/creation/quick/red.frag.qsb"
    "benchmarks/auto/js/date_getYear.qml"
    "benchmarks/auto/js/fib10.qml"
    "benchmarks/auto/js/sum10k.qml"
    "benchmarks/auto/js/sum10k_fixed.qml"
    "benchmarks/auto/layouts/gridlayout_large.qml"
    "benchmarks/auto/quick3d/lights.qml"
    "benchmarks/auto/quick3d/multiview.qml"
    "benchmarks/auto/quick3d/principledmaterial"
    "benchmarks/auto/quick3d/principledmaterial/PrincipledMaterial.qml"
    "benchmarks/auto/quick3d/principledmaterial/maps"
    "benchmarks/auto/quick3d/principledmaterial/maps/OpenfootageNET_garage-1024.hdr"
    "benchmarks/auto/quick3d/principledmaterial/maps/metallic"
    "benchmarks/auto/quick3d/principledmaterial/maps/metallic/basecolor.jpg"
    "benchmarks/auto/quick3d/principledmaterial/maps/metallic/metallic.jpg"
    "benchmarks/auto/quick3d/principledmaterial/maps/metallic/normal.jpg"
    "benchmarks/auto/quick3d/principledmaterial/maps/metallic/roughness.jpg"
    "benchmarks/auto/quick3d/shapespawner/WeirdShape.qml"
    "benchmarks/auto/quick3d/shapespawner/shapespawner.qml"
    "benchmarks/auto/quick3d/shapespawner/weirdShape.mesh"
    "shared/butterfly-collapsed.png"
    "shared/butterfly-half.png"
    "shared/butterfly-wide.png"
    "shared/alpha.png"
    "shared/solid.png"

)

qt_internal_add_resource(qmlbench "qmlbench"
    PREFIX
        "/"
    FILES
        ${qmlbench_resource_files}
)