mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-11-26 22:27:06 +08:00
72 lines
1.4 KiB
CMake
72 lines
1.4 KiB
CMake
# Copyright (C) 2022 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#####################################################################
|
|
## 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
|
|
)
|