ba48e1b809
moc, qmake, rcc, and uic tests execute corresponding tools inside the test executables. This adds dependencies explicitly, to execute tests using _check targets, without the need to manually build dependencies. Pick-to: 6.3 6.2 Fixes: QTBUG-98576 Change-Id: I8b989276e21199b867591f7b0f6af9204695ac13 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
71 lines
1.3 KiB
CMake
71 lines
1.3 KiB
CMake
# 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
|
|
)
|