qt5base-lts/tests/auto/tools/rcc/CMakeLists.txt
Lucie Gérard 32df595275 Change the license of all CMakeLists.txt and *.cmake files to BSD
Task-number: QTBUG-105718
Change-Id: I5d3ef70a31235868b9be6cb479b7621bf2a8ba39
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-08-23 23:58:42 +02:00

74 lines
1.4 KiB
CMake

# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
# Generated from rcc.pro.
#####################################################################
## tst_rcc Test:
#####################################################################
qt_internal_add_test(tst_rcc
SOURCES
tst_rcc.cpp
)
# Resources:
set(images_resource_files
"data/images/images/circle.png"
"data/images/images/square.png"
"data/images/images/subdir/triangle.png"
)
qt_internal_add_resource(tst_rcc "images"
PREFIX
"/"
BASE
"data/images"
FILES
${images_resource_files}
)
set(size-0_resource_files
"data/sizes/data/data-0.txt"
)
qt_internal_add_resource(tst_rcc "size-0"
PREFIX
"/"
BASE
"data/sizes"
FILES
${size-0_resource_files}
)
set(size-2-0-35-1_resource_files
"data/sizes/data/data-0.txt"
"data/sizes/data/data-1.txt"
"data/sizes/data/data-2.txt"
"data/sizes/data/data-35.txt"
)
qt_internal_add_resource(tst_rcc "size-2-0-35-1"
PREFIX
"/"
BASE
"data/sizes"
FILES
${size-2-0-35-1_resource_files}
)
set(size-1_resource_files
"data/sizes/data/data-1.txt"
)
qt_internal_add_resource(tst_rcc "size-1"
PREFIX
"/"
BASE
"data/sizes"
FILES
${size-1_resource_files}
)
# Add dependencies that are implicitly used inside the test
add_dependencies(tst_rcc
Qt::rcc
)