qt5base-lts/tests/benchmarks/widgets/graphicsview/qgraphicsview/CMakeLists.txt
Friedemann Kleint 97bfacf1e2 tests: Remove remains of qmake conversion from CMakeLists.txt files
Pick-to: 6.5
Change-Id: I8d106554bb86ac1ec9bb7a4083de4c376bcbab1d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2023-02-17 21:56:49 +01:00

53 lines
1.2 KiB
CMake

# 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
)