summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/widgets/graphicsview/qgraphicsview/CMakeLists.txt
blob: c9eff6db3c0ab8b5a4ec68fe7cf0b024c2ef7bdb (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
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

#####################################################################
## tst_bench_qgraphicsview Binary:
#####################################################################

qt_internal_add_benchmark(tst_bench_qgraphicsview
    SOURCES
        chiptester/chip.cpp chiptester/chip.h
        chiptester/chiptester.cpp chiptester/chiptester.h
        tst_qgraphicsview.cpp
    LIBRARIES
        Qt::Gui
        Qt::Test
        Qt::Widgets
)

# Resources:
set(qgraphicsview_resource_files
    "images/designer.png"
    "images/wine-big.jpeg"
    "images/wine.jpeg"
    "random.data"
)

qt_internal_add_resource(tst_bench_qgraphicsview "qgraphicsview"
    PREFIX
        "/"
    FILES
        ${qgraphicsview_resource_files}
)
set(images_resource_files
    "chiptester/qt4logo.png"
)

qt_internal_add_resource(tst_bench_qgraphicsview "images"
    PREFIX
        "/"
    BASE
        "chiptester"
    FILES
        ${images_resource_files}
)

## Scopes:
#####################################################################

qt_internal_extend_target(tst_bench_qgraphicsview CONDITION TARGET Qt::OpenGL
    LIBRARIES
        Qt::OpenGL
)