d784864b58
Fixes: QTBUG-78223 Change-Id: I9a5c90bb664e3baa4481e6bdaa9a4990e3f68317 Reviewed-by: Qt CMake Build Bot Reviewed-by: Leander Beernaert <leander.beernaert@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
57 lines
1.2 KiB
CMake
57 lines
1.2 KiB
CMake
# Generated from qmovie.pro.
|
|
|
|
#####################################################################
|
|
## tst_qmovie Test:
|
|
#####################################################################
|
|
|
|
# Collect test data
|
|
file(GLOB_RECURSE test_data_glob
|
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
animations/*)
|
|
list(APPEND test_data ${test_data_glob})
|
|
|
|
add_qt_test(tst_qmovie
|
|
SOURCES
|
|
tst_qmovie.cpp
|
|
PUBLIC_LIBRARIES
|
|
Qt::Gui
|
|
TESTDATA ${test_data}
|
|
)
|
|
|
|
# Resources:
|
|
set(resources_resource_files
|
|
"animations/comicsecard.gif"
|
|
"animations/corrupt.gif"
|
|
"animations/trolltech.gif"
|
|
)
|
|
|
|
add_qt_resource(tst_qmovie "resources"
|
|
PREFIX
|
|
"/"
|
|
FILES
|
|
${resources_resource_files}
|
|
)
|
|
|
|
|
|
#### Keys ignored in scope 1:.:.:qmovie.pro:<TRUE>:
|
|
# MOC_DIR = "tmp"
|
|
# QT_FOR_CONFIG = "gui-private"
|
|
|
|
## Scopes:
|
|
#####################################################################
|
|
|
|
extend_target(tst_qmovie CONDITION TARGET Qt::Widgets
|
|
PUBLIC_LIBRARIES
|
|
Qt::Widgets
|
|
)
|
|
|
|
extend_target(tst_qmovie CONDITION QT_FEATURE_gif
|
|
DEFINES
|
|
QTEST_HAVE_GIF
|
|
)
|
|
|
|
extend_target(tst_qmovie CONDITION QT_FEATURE_jpeg
|
|
DEFINES
|
|
QTEST_HAVE_JPEG
|
|
)
|