cmake: add gui/image tests
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>
This commit is contained in:
parent
c4b7f79e76
commit
d784864b58
@ -1,15 +1,17 @@
|
|||||||
if (QT_FEATURE_network)
|
# Generated from image.pro.
|
||||||
# add_subdirectory("qimagereader")
|
|
||||||
|
if(TARGET Qt::Network)
|
||||||
|
add_subdirectory(qimagereader)
|
||||||
endif()
|
endif()
|
||||||
# add_subdirectory("qicoimageformat")
|
add_subdirectory(qicoimageformat)
|
||||||
# add_subdirectory("qpixmap")
|
add_subdirectory(qpixmap)
|
||||||
if (QT_FEATURE_private_tests)
|
add_subdirectory(qimage)
|
||||||
add_subdirectory("qpixmapcache")
|
add_subdirectory(qimageiohandler)
|
||||||
|
add_subdirectory(qimagewriter)
|
||||||
|
add_subdirectory(qmovie)
|
||||||
|
add_subdirectory(qpicture)
|
||||||
|
add_subdirectory(qicon)
|
||||||
|
add_subdirectory(qiconhighdpi)
|
||||||
|
if(QT_FEATURE_private_tests)
|
||||||
|
add_subdirectory(qpixmapcache)
|
||||||
endif()
|
endif()
|
||||||
# add_subdirectory("qimage")
|
|
||||||
add_subdirectory("qimageiohandler")
|
|
||||||
# add_subdirectory("qimagewriter")
|
|
||||||
# add_subdirectory("qmovie")
|
|
||||||
add_subdirectory("qpicture")
|
|
||||||
# add_subdirectory("qicon")
|
|
||||||
# add_subdirectory("qiconhighdpi")
|
|
||||||
|
48
tests/auto/gui/image/qicoimageformat/CMakeLists.txt
Normal file
48
tests/auto/gui/image/qicoimageformat/CMakeLists.txt
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
# Generated from qicoimageformat.pro.
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
## tst_qicoimageformat Test:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
# Collect test data
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
icons/*)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
|
||||||
|
add_qt_test(tst_qicoimageformat
|
||||||
|
SOURCES
|
||||||
|
tst_qicoimageformat.cpp
|
||||||
|
PUBLIC_LIBRARIES
|
||||||
|
Qt::Gui
|
||||||
|
TESTDATA ${test_data}
|
||||||
|
)
|
||||||
|
|
||||||
|
## Scopes:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
# Resources:
|
||||||
|
set(qicoimageformat_resource_files
|
||||||
|
"icons/invalid/35floppy.ico"
|
||||||
|
"icons/valid/35FLOPPY.ICO"
|
||||||
|
"icons/valid/AddPerfMon.ico"
|
||||||
|
"icons/valid/App.ico"
|
||||||
|
"icons/valid/Obj_N2_Internal_Mem.ico"
|
||||||
|
"icons/valid/Qt.ico"
|
||||||
|
"icons/valid/Status_Play.ico"
|
||||||
|
"icons/valid/TIMER01.ICO"
|
||||||
|
"icons/valid/WORLD.ico"
|
||||||
|
"icons/valid/WORLDH.ico"
|
||||||
|
"icons/valid/abcardWindow.ico"
|
||||||
|
"icons/valid/semitransparent.ico"
|
||||||
|
"icons/valid/trolltechlogo_tiny.ico"
|
||||||
|
"icons/valid/yellow.cur"
|
||||||
|
)
|
||||||
|
|
||||||
|
add_qt_resource(tst_qicoimageformat "qicoimageformat"
|
||||||
|
PREFIX
|
||||||
|
"/"
|
||||||
|
FILES
|
||||||
|
${qicoimageformat_resource_files}
|
||||||
|
)
|
||||||
|
|
94
tests/auto/gui/image/qicon/CMakeLists.txt
Normal file
94
tests/auto/gui/image/qicon/CMakeLists.txt
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
# Generated from qicon.pro.
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
## tst_qicon Test:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
# Collect test data
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
icons/*)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
second_icons/*)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
fallback_icons/*)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
*.png)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
*.svg)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
*.svgz)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
|
||||||
|
add_qt_test(tst_qicon
|
||||||
|
SOURCES
|
||||||
|
tst_qicon.cpp
|
||||||
|
PUBLIC_LIBRARIES
|
||||||
|
Qt::Gui
|
||||||
|
TESTDATA ${test_data}
|
||||||
|
)
|
||||||
|
|
||||||
|
# Resources:
|
||||||
|
set(tst_qicon_resource_files
|
||||||
|
"./fallback_icons/red.png"
|
||||||
|
"./icons/testtheme/16x16/actions/appointment-new.png"
|
||||||
|
"./icons/testtheme/22x22/actions/appointment-new.png"
|
||||||
|
"./icons/testtheme/index.theme"
|
||||||
|
"./icons/testtheme/scalable/actions/svg-only.svg"
|
||||||
|
"./icons/themeparent/16x16/actions/address-book-new.png"
|
||||||
|
"./icons/themeparent/16x16/actions/appointment-new.png"
|
||||||
|
"./icons/themeparent/22x22/actions/address-book-new.png"
|
||||||
|
"./icons/themeparent/22x22/actions/appointment-new.png"
|
||||||
|
"./icons/themeparent/32x32/actions/address-book-new.png"
|
||||||
|
"./icons/themeparent/32x32/actions/appointment-new.png"
|
||||||
|
"./icons/themeparent/icon-theme.cache"
|
||||||
|
"./icons/themeparent/index.theme"
|
||||||
|
"./icons/themeparent/scalable/actions/address-book-new.svg"
|
||||||
|
"./icons/themeparent/scalable/actions/appointment-new.svg"
|
||||||
|
"./second_icons/testtheme/32x32/actions/appointment-new.png"
|
||||||
|
"./styles/commonstyle/images/standardbutton-open-128.png"
|
||||||
|
"./styles/commonstyle/images/standardbutton-open-16.png"
|
||||||
|
"./styles/commonstyle/images/standardbutton-open-32.png"
|
||||||
|
"./styles/commonstyle/images/standardbutton-save-128.png"
|
||||||
|
"./styles/commonstyle/images/standardbutton-save-16.png"
|
||||||
|
"./styles/commonstyle/images/standardbutton-save-32.png"
|
||||||
|
"image.png"
|
||||||
|
"rect.png"
|
||||||
|
"tst_qicon.cpp"
|
||||||
|
)
|
||||||
|
|
||||||
|
add_qt_resource(tst_qicon "tst_qicon"
|
||||||
|
PREFIX
|
||||||
|
"/"
|
||||||
|
FILES
|
||||||
|
${tst_qicon_resource_files}
|
||||||
|
)
|
||||||
|
set(qmake_immediate_resource_files
|
||||||
|
"tst_qicon.cpp"
|
||||||
|
)
|
||||||
|
|
||||||
|
add_qt_resource(tst_qicon "qmake_immediate"
|
||||||
|
PREFIX
|
||||||
|
"/"
|
||||||
|
FILES
|
||||||
|
${qmake_immediate_resource_files}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
## Scopes:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
extend_target(tst_qicon CONDITION TARGET Qt::Widgets
|
||||||
|
PUBLIC_LIBRARIES
|
||||||
|
Qt::Widgets
|
||||||
|
)
|
37
tests/auto/gui/image/qiconhighdpi/CMakeLists.txt
Normal file
37
tests/auto/gui/image/qiconhighdpi/CMakeLists.txt
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# Generated from qiconhighdpi.pro.
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
## tst_qicon Test:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
# Collect test data
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
icons/*)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
|
||||||
|
add_qt_test(tst_qiconhighdpi
|
||||||
|
SOURCES
|
||||||
|
tst_qiconhighdpi.cpp
|
||||||
|
PUBLIC_LIBRARIES
|
||||||
|
Qt::Gui
|
||||||
|
TESTDATA ${test_data}
|
||||||
|
)
|
||||||
|
|
||||||
|
# Resources:
|
||||||
|
set(tst_qiconhighdpi_resource_files
|
||||||
|
"icons/misc/button.9.png"
|
||||||
|
"icons/misc/button@2x.9.png"
|
||||||
|
"icons/testtheme/16x16/actions/appointment-new.png"
|
||||||
|
"icons/testtheme/22x22/actions/appointment-new.png"
|
||||||
|
"icons/testtheme/22x22@2/actions/appointment-new.png"
|
||||||
|
"icons/testtheme/index.theme"
|
||||||
|
)
|
||||||
|
|
||||||
|
add_qt_resource(tst_qiconhighdpi "tst_qiconhighdpi"
|
||||||
|
PREFIX
|
||||||
|
"/"
|
||||||
|
FILES
|
||||||
|
${tst_qiconhighdpi_resource_files}
|
||||||
|
)
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
CONFIG += testcase
|
CONFIG += testcase
|
||||||
TARGET = tst_qicon
|
TARGET = tst_qiconhighdpi
|
||||||
|
|
||||||
QT += testlib
|
QT += testlib
|
||||||
SOURCES += tst_qiconhighdpi.cpp
|
SOURCES += tst_qiconhighdpi.cpp
|
||||||
|
66
tests/auto/gui/image/qimage/CMakeLists.txt
Normal file
66
tests/auto/gui/image/qimage/CMakeLists.txt
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
# Generated from qimage.pro.
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
## tst_qimage Test:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
# Collect test data
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
images/*)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
|
||||||
|
add_qt_test(tst_qimage
|
||||||
|
SOURCES
|
||||||
|
tst_qimage.cpp
|
||||||
|
LIBRARIES
|
||||||
|
Qt::CorePrivate
|
||||||
|
Qt::GuiPrivate
|
||||||
|
PUBLIC_LIBRARIES
|
||||||
|
Qt::Gui
|
||||||
|
TESTDATA ${test_data}
|
||||||
|
)
|
||||||
|
|
||||||
|
## Scopes:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
# Resources:
|
||||||
|
set(qimage_resource_files
|
||||||
|
"images/image.bmp"
|
||||||
|
"images/image.gif"
|
||||||
|
"images/image.ico"
|
||||||
|
"images/image.jpg"
|
||||||
|
"images/image.pbm"
|
||||||
|
"images/image.pgm"
|
||||||
|
"images/image.png"
|
||||||
|
"images/image.ppm"
|
||||||
|
"images/image.xbm"
|
||||||
|
"images/image.xpm"
|
||||||
|
"images/jpeg_exif_orientation_value_1.jpg"
|
||||||
|
"images/jpeg_exif_orientation_value_2.jpg"
|
||||||
|
"images/jpeg_exif_orientation_value_3.jpg"
|
||||||
|
"images/jpeg_exif_orientation_value_4.jpg"
|
||||||
|
"images/jpeg_exif_orientation_value_5.jpg"
|
||||||
|
"images/jpeg_exif_orientation_value_6.jpg"
|
||||||
|
"images/jpeg_exif_orientation_value_7.jpg"
|
||||||
|
"images/jpeg_exif_orientation_value_8.jpg"
|
||||||
|
)
|
||||||
|
|
||||||
|
add_qt_resource(tst_qimage "qimage"
|
||||||
|
PREFIX
|
||||||
|
"/"
|
||||||
|
FILES
|
||||||
|
${qimage_resource_files}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
extend_target(tst_qimage CONDITION WIN32 AND NOT WINRT
|
||||||
|
PUBLIC_LIBRARIES
|
||||||
|
gdi32
|
||||||
|
user32
|
||||||
|
)
|
||||||
|
|
||||||
|
extend_target(tst_qimage CONDITION APPLE
|
||||||
|
PUBLIC_LIBRARIES
|
||||||
|
${FWCoreGraphics}
|
||||||
|
)
|
@ -1 +1,12 @@
|
|||||||
add_qt_test(tst_qimageiohandler SOURCES tst_qimageiohandler.cpp LIBRARIES Qt::Gui)
|
# Generated from qimageiohandler.pro.
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
## tst_qimageiohandler Test:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
add_qt_test(tst_qimageiohandler
|
||||||
|
SOURCES
|
||||||
|
tst_qimageiohandler.cpp
|
||||||
|
PUBLIC_LIBRARIES
|
||||||
|
Qt::Gui
|
||||||
|
)
|
||||||
|
65
tests/auto/gui/image/qimagereader/CMakeLists.txt
Normal file
65
tests/auto/gui/image/qimagereader/CMakeLists.txt
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
# Generated from qimagereader.pro.
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
## tst_qimagereader Test:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
# Collect test data
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
images/*)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
baseline/*)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
|
||||||
|
add_qt_test(tst_qimagereader
|
||||||
|
SOURCES
|
||||||
|
tst_qimagereader.cpp
|
||||||
|
LIBRARIES
|
||||||
|
Qt::CorePrivate
|
||||||
|
Qt::GuiPrivate
|
||||||
|
PUBLIC_LIBRARIES
|
||||||
|
Qt::Gui
|
||||||
|
Qt::Network
|
||||||
|
TESTDATA ${test_data}
|
||||||
|
)
|
||||||
|
|
||||||
|
file(GLOB resource_glob_0 RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "images/*")
|
||||||
|
foreach(file IN LISTS resource_glob_0)
|
||||||
|
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/${file}" PROPERTIES QT_RESOURCE_ALIAS "${file}")
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
# Resources:
|
||||||
|
set(qmake_immediate_resource_files
|
||||||
|
${resource_glob_0}
|
||||||
|
)
|
||||||
|
|
||||||
|
add_qt_resource(tst_qimagereader "qmake_immediate"
|
||||||
|
PREFIX
|
||||||
|
"/"
|
||||||
|
FILES
|
||||||
|
${qmake_immediate_resource_files}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
#### Keys ignored in scope 1:.:.:qimagereader.pro:<TRUE>:
|
||||||
|
# MOC_DIR = "tmp"
|
||||||
|
|
||||||
|
## Scopes:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
# Resources:
|
||||||
|
set(android_testdata_resource_files
|
||||||
|
"images/kollada-noext"
|
||||||
|
"images/trans.gif"
|
||||||
|
)
|
||||||
|
|
||||||
|
add_qt_resource(tst_qimagereader "android_testdata"
|
||||||
|
PREFIX
|
||||||
|
"/"
|
||||||
|
FILES
|
||||||
|
${android_testdata_resource_files}
|
||||||
|
)
|
||||||
|
|
49
tests/auto/gui/image/qimagewriter/CMakeLists.txt
Normal file
49
tests/auto/gui/image/qimagewriter/CMakeLists.txt
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
# Generated from qimagewriter.pro.
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
## tst_qimagewriter Test:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
# Collect test data
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
images/*)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
|
||||||
|
add_qt_test(tst_qimagewriter
|
||||||
|
SOURCES
|
||||||
|
tst_qimagewriter.cpp
|
||||||
|
PUBLIC_LIBRARIES
|
||||||
|
Qt::Gui
|
||||||
|
TESTDATA ${test_data}
|
||||||
|
)
|
||||||
|
|
||||||
|
#### Keys ignored in scope 1:.:.:qimagewriter.pro:<TRUE>:
|
||||||
|
# MOC_DIR = "tmp"
|
||||||
|
|
||||||
|
## Scopes:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
# Resources:
|
||||||
|
set(qimagewriter_resource_files
|
||||||
|
"images/YCbCr_cmyk.jpg"
|
||||||
|
"images/YCbCr_rgb.jpg"
|
||||||
|
"images/beavis.jpg"
|
||||||
|
"images/colorful.bmp"
|
||||||
|
"images/earth.gif"
|
||||||
|
"images/font.bmp"
|
||||||
|
"images/gnus.xbm"
|
||||||
|
"images/kollada.png"
|
||||||
|
"images/marble.xpm"
|
||||||
|
"images/ship63.pbm"
|
||||||
|
"images/teapot.ppm"
|
||||||
|
"images/trolltech.gif"
|
||||||
|
)
|
||||||
|
|
||||||
|
add_qt_resource(tst_qimagewriter "qimagewriter"
|
||||||
|
PREFIX
|
||||||
|
"/"
|
||||||
|
FILES
|
||||||
|
${qimagewriter_resource_files}
|
||||||
|
)
|
||||||
|
|
56
tests/auto/gui/image/qmovie/CMakeLists.txt
Normal file
56
tests/auto/gui/image/qmovie/CMakeLists.txt
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
# 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
|
||||||
|
)
|
@ -1 +1,12 @@
|
|||||||
add_qt_test(tst_qpicture SOURCES tst_qpicture.cpp LIBRARIES Qt::Gui)
|
# Generated from qpicture.pro.
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
## tst_qpicture Test:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
add_qt_test(tst_qpicture
|
||||||
|
SOURCES
|
||||||
|
tst_qpicture.cpp
|
||||||
|
PUBLIC_LIBRARIES
|
||||||
|
Qt::Gui
|
||||||
|
)
|
||||||
|
109
tests/auto/gui/image/qpixmap/CMakeLists.txt
Normal file
109
tests/auto/gui/image/qpixmap/CMakeLists.txt
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
# Generated from qpixmap.pro.
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
## tst_qpixmap Test:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
# Collect test data
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
convertFromImage/*)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
convertFromToHICON/*)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
loadFromData/*)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
file(GLOB_RECURSE test_data_glob
|
||||||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
images/*)
|
||||||
|
list(APPEND test_data ${test_data_glob})
|
||||||
|
|
||||||
|
add_qt_test(tst_qpixmap
|
||||||
|
SOURCES
|
||||||
|
tst_qpixmap.cpp
|
||||||
|
LIBRARIES
|
||||||
|
Qt::CorePrivate
|
||||||
|
Qt::GuiPrivate
|
||||||
|
PUBLIC_LIBRARIES
|
||||||
|
Qt::Gui
|
||||||
|
TESTDATA ${test_data}
|
||||||
|
)
|
||||||
|
|
||||||
|
# Resources:
|
||||||
|
set(qpixmap_resource_files
|
||||||
|
"convertFromImage/task31722_0/img1.png"
|
||||||
|
"convertFromImage/task31722_0/img2.png"
|
||||||
|
"convertFromImage/task31722_1/img1.png"
|
||||||
|
"convertFromImage/task31722_1/img2.png"
|
||||||
|
"convertFromToHICON/icon_32bpp.ico"
|
||||||
|
"convertFromToHICON/icon_32bpp_16x16.png"
|
||||||
|
"convertFromToHICON/icon_32bpp_256x256.png"
|
||||||
|
"convertFromToHICON/icon_32bpp_32x32.png"
|
||||||
|
"convertFromToHICON/icon_32bpp_48x48.png"
|
||||||
|
"convertFromToHICON/icon_8bpp.ico"
|
||||||
|
"convertFromToHICON/icon_8bpp_16x16.png"
|
||||||
|
"convertFromToHICON/icon_8bpp_32x32.png"
|
||||||
|
"convertFromToHICON/icon_8bpp_48x48.png"
|
||||||
|
"images/designer.png"
|
||||||
|
"images/dx_-10_dy_-10_50_50_100_100.png"
|
||||||
|
"images/dx_-10_dy_-10_x_y_w_h.png"
|
||||||
|
"images/dx_-10_dy_0_50_50_100_100.png"
|
||||||
|
"images/dx_-10_dy_0_x_y_w_h.png"
|
||||||
|
"images/dx_-128_dy_-128_x_y_w_h.png"
|
||||||
|
"images/dx_-128_dy_0_x_y_w_h.png"
|
||||||
|
"images/dx_0_dy_-10_50_50_100_100.png"
|
||||||
|
"images/dx_0_dy_-10_x_y_w_h.png"
|
||||||
|
"images/dx_0_dy_-128_x_y_w_h.png"
|
||||||
|
"images/dx_0_dy_0_50_50_100_100.png"
|
||||||
|
"images/dx_0_dy_0_null.png"
|
||||||
|
"images/dx_0_dy_0_x_y_w_h.png"
|
||||||
|
"images/dx_0_dy_10_50_50_100_100.png"
|
||||||
|
"images/dx_0_dy_10_x_y_w_h.png"
|
||||||
|
"images/dx_0_dy_128_x_y_w_h.png"
|
||||||
|
"images/dx_0_dy_1_null.png"
|
||||||
|
"images/dx_10_dy_0_50_50_100_100.png"
|
||||||
|
"images/dx_10_dy_0_x_y_w_h.png"
|
||||||
|
"images/dx_10_dy_10_50_50_100_100.png"
|
||||||
|
"images/dx_10_dy_10_x_y_w_h.png"
|
||||||
|
"images/dx_128_dy_0_x_y_w_h.png"
|
||||||
|
"images/dx_128_dy_128_64_64_128_128.png"
|
||||||
|
"images/dx_128_dy_128_x_y_w_h.png"
|
||||||
|
"images/dx_1_dy_0_null.png"
|
||||||
|
"loadFromData/designer_argb32.png"
|
||||||
|
"loadFromData/designer_indexed8_no_alpha.gif"
|
||||||
|
"loadFromData/designer_indexed8_no_alpha.png"
|
||||||
|
"loadFromData/designer_indexed8_no_alpha_animated.gif"
|
||||||
|
"loadFromData/designer_indexed8_with_alpha.gif"
|
||||||
|
"loadFromData/designer_indexed8_with_alpha.png"
|
||||||
|
"loadFromData/designer_indexed8_with_alpha_animated.gif"
|
||||||
|
"loadFromData/designer_rgb32.jpg"
|
||||||
|
"loadFromData/designer_rgb32.png"
|
||||||
|
)
|
||||||
|
|
||||||
|
add_qt_resource(tst_qpixmap "qpixmap"
|
||||||
|
PREFIX
|
||||||
|
"/"
|
||||||
|
FILES
|
||||||
|
${qpixmap_resource_files}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
## Scopes:
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
extend_target(tst_qpixmap CONDITION TARGET Qt::Widgets
|
||||||
|
LIBRARIES
|
||||||
|
Qt::WidgetsPrivate
|
||||||
|
PUBLIC_LIBRARIES
|
||||||
|
Qt::Widgets
|
||||||
|
)
|
||||||
|
|
||||||
|
extend_target(tst_qpixmap CONDITION WIN32 AND NOT WINRT
|
||||||
|
PUBLIC_LIBRARIES
|
||||||
|
gdi32
|
||||||
|
user32
|
||||||
|
)
|
@ -5,7 +5,6 @@
|
|||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
add_qt_test(tst_qpixmapcache
|
add_qt_test(tst_qpixmapcache
|
||||||
GUI
|
|
||||||
SOURCES
|
SOURCES
|
||||||
tst_qpixmapcache.cpp
|
tst_qpixmapcache.cpp
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user