2019-10-08 14:30:21 +00:00
|
|
|
# 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})
|
|
|
|
|
2020-09-22 08:16:58 +00:00
|
|
|
qt_internal_add_test(tst_qimage
|
2019-10-08 14:30:21 +00:00
|
|
|
SOURCES
|
|
|
|
tst_qimage.cpp
|
|
|
|
PUBLIC_LIBRARIES
|
2020-02-12 09:24:49 +00:00
|
|
|
Qt::CorePrivate
|
2019-10-08 14:30:21 +00:00
|
|
|
Qt::Gui
|
2020-02-12 09:24:49 +00:00
|
|
|
Qt::GuiPrivate
|
2019-10-08 14:30:21 +00:00
|
|
|
TESTDATA ${test_data}
|
|
|
|
)
|
|
|
|
|
|
|
|
## Scopes:
|
|
|
|
#####################################################################
|
|
|
|
|
2019-11-12 14:20:10 +00:00
|
|
|
if(ANDROID AND NOT ANDROID_EMBEDDED)
|
|
|
|
# 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"
|
|
|
|
)
|
2019-10-08 14:30:21 +00:00
|
|
|
|
2020-09-22 08:16:58 +00:00
|
|
|
qt_internal_add_resource(tst_qimage "qimage"
|
2019-11-12 14:20:10 +00:00
|
|
|
PREFIX
|
|
|
|
"/"
|
|
|
|
FILES
|
|
|
|
${qimage_resource_files}
|
|
|
|
)
|
|
|
|
endif()
|
2019-10-08 14:30:21 +00:00
|
|
|
|
2020-09-22 08:16:58 +00:00
|
|
|
qt_internal_extend_target(tst_qimage CONDITION WIN32
|
2019-10-08 14:30:21 +00:00
|
|
|
PUBLIC_LIBRARIES
|
|
|
|
gdi32
|
|
|
|
user32
|
|
|
|
)
|
|
|
|
|
2020-09-22 08:16:58 +00:00
|
|
|
qt_internal_extend_target(tst_qimage CONDITION APPLE
|
2019-10-08 14:30:21 +00:00
|
|
|
PUBLIC_LIBRARIES
|
|
|
|
${FWCoreGraphics}
|
|
|
|
)
|