| 1 |
# Copyright (C) 2022 The Qt Company Ltd. |
| 2 |
# SPDX-License-Identifier: BSD-3-Clause |
| 3 |
|
| 4 |
##################################################################### |
| 5 |
## tst_bench_lancebench Binary: |
| 6 |
##################################################################### |
| 7 |
|
| 8 |
qt_internal_add_benchmark(tst_bench_lancebench |
| 9 |
SOURCES |
| 10 |
../../../../baseline/shared/paintcommands.cpp ../../../../baseline/shared/paintcommands.h |
| 11 |
tst_lancebench.cpp |
| 12 |
INCLUDE_DIRECTORIES |
| 13 |
../../../../baseline/shared |
| 14 |
LIBRARIES |
| 15 |
Qt::Gui |
| 16 |
Qt::GuiPrivate |
| 17 |
Qt::Test |
| 18 |
) |
| 19 |
|
| 20 |
# Resources: |
| 21 |
set(images_resource_files |
| 22 |
"images/alpha.png" |
| 23 |
"images/alpha2x2.png" |
| 24 |
"images/bitmap.png" |
| 25 |
"images/border.png" |
| 26 |
"images/borderimage.png" |
| 27 |
"images/dome_argb32.png" |
| 28 |
"images/dome_indexed.png" |
| 29 |
"images/dome_indexed_mask.png" |
| 30 |
"images/dome_mono.png" |
| 31 |
"images/dome_mono_128.png" |
| 32 |
"images/dome_mono_palette.png" |
| 33 |
"images/dome_rgb32.png" |
| 34 |
"images/dot.png" |
| 35 |
"images/face.png" |
| 36 |
"images/gam030.png" |
| 37 |
"images/gam045.png" |
| 38 |
"images/gam056.png" |
| 39 |
"images/gam100.png" |
| 40 |
"images/gam200.png" |
| 41 |
"images/image.png" |
| 42 |
"images/mask.png" |
| 43 |
"images/mask_100.png" |
| 44 |
"images/masked.png" |
| 45 |
"images/sign.png" |
| 46 |
"images/solid.png" |
| 47 |
"images/solid2x2.png" |
| 48 |
"images/struct-image-01.jpg" |
| 49 |
"images/struct-image-01.png" |
| 50 |
"images/zebra.png" |
| 51 |
) |
| 52 |
|
| 53 |
list(TRANSFORM images_resource_files PREPEND "../../../../baseline/painting/") |
| 54 |
|
| 55 |
qt_internal_add_resource(tst_bench_lancebench "images" |
| 56 |
PREFIX |
| 57 |
"/" |
| 58 |
BASE |
| 59 |
"../../../../baseline/painting" |
| 60 |
FILES |
| 61 |
${images_resource_files} |
| 62 |
) |
| 63 |
|
| 64 |
## Scopes: |
| 65 |
##################################################################### |
| 66 |
|
| 67 |
qt_internal_extend_target(tst_bench_lancebench CONDITION QT_FEATURE_opengl |
| 68 |
LIBRARIES |
| 69 |
Qt::OpenGL |
| 70 |
) |