From 9443239c2c01810189d63854393d43c493201c66 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 17 May 2019 19:13:24 +0200 Subject: Initial CMake Port Port 90% of imageformats to be built with CMake. Missing support for mng plugin and documentation. Change-Id: I1d7e4b93c6f8446468f00dbf0663a6a4ec8c9774 Reviewed-by: Simon Hausmann --- tests/CMakeLists.txt | 4 ++ tests/auto/CMakeLists.txt | 11 ++++++ tests/auto/dds/CMakeLists.txt | 69 ++++++++++++++++++++++++++++++++++ tests/auto/heif/CMakeLists.txt | 21 +++++++++++ tests/auto/icns/CMakeLists.txt | 31 +++++++++++++++ tests/auto/jp2/CMakeLists.txt | 21 +++++++++++ tests/auto/mng/CMakeLists.txt | 24 ++++++++++++ tests/auto/tga/CMakeLists.txt | 20 ++++++++++ tests/auto/tiff/CMakeLists.txt | 71 +++++++++++++++++++++++++++++++++++ tests/auto/wbmp/CMakeLists.txt | 21 +++++++++++ tests/auto/webp/CMakeLists.txt | 24 ++++++++++++ tests/benchmarks/CMakeLists.txt | 7 ++++ tests/benchmarks/mng/CMakeLists.txt | 26 +++++++++++++ tests/benchmarks/tiff/CMakeLists.txt | 73 ++++++++++++++++++++++++++++++++++++ 14 files changed, 423 insertions(+) create mode 100644 tests/CMakeLists.txt create mode 100644 tests/auto/CMakeLists.txt create mode 100644 tests/auto/dds/CMakeLists.txt create mode 100644 tests/auto/heif/CMakeLists.txt create mode 100644 tests/auto/icns/CMakeLists.txt create mode 100644 tests/auto/jp2/CMakeLists.txt create mode 100644 tests/auto/mng/CMakeLists.txt create mode 100644 tests/auto/tga/CMakeLists.txt create mode 100644 tests/auto/tiff/CMakeLists.txt create mode 100644 tests/auto/wbmp/CMakeLists.txt create mode 100644 tests/auto/webp/CMakeLists.txt create mode 100644 tests/benchmarks/CMakeLists.txt create mode 100644 tests/benchmarks/mng/CMakeLists.txt create mode 100644 tests/benchmarks/tiff/CMakeLists.txt (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..f695a22 --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,4 @@ +# Generated from tests.pro. + +add_subdirectory(auto) +add_subdirectory(benchmarks) diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt new file mode 100644 index 0000000..b671097 --- /dev/null +++ b/tests/auto/CMakeLists.txt @@ -0,0 +1,11 @@ +# Generated from auto.pro. + +add_subdirectory(tga) +add_subdirectory(wbmp) +add_subdirectory(dds) +add_subdirectory(icns) +add_subdirectory(jp2) +add_subdirectory(webp) +add_subdirectory(heif) +add_subdirectory(mng) +add_subdirectory(tiff) diff --git a/tests/auto/dds/CMakeLists.txt b/tests/auto/dds/CMakeLists.txt new file mode 100644 index 0000000..357b424 --- /dev/null +++ b/tests/auto/dds/CMakeLists.txt @@ -0,0 +1,69 @@ +# Generated from dds.pro. + +##################################################################### +## tst_qdds Test: +##################################################################### + +add_qt_test(tst_qdds + SOURCES + tst_qdds.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qdds "dds" PREFIX "/" BASE "../../shared/images" FILES + dds/A16B16G16R16.dds + dds/A16B16G16R16F.dds + dds/A1R5G5B5.dds + dds/A2B10G10R10.dds + dds/A2R10G10B10.dds + dds/A2W10V10U10.dds + dds/A32B32G32R32F.dds + dds/A4L4.dds + dds/A4R4G4B4.dds + dds/A8.dds + dds/A8B8G8R8.dds + dds/A8L8.dds + dds/A8R3G3B2.dds + dds/A8R8G8B8.2.dds + dds/A8R8G8B8.dds + dds/ATI2.dds + dds/CxV8U8.dds + dds/DXT1.dds + dds/DXT2.dds + dds/DXT3.dds + dds/DXT4.dds + dds/DXT5.dds + dds/G16R16.dds + dds/G16R16F.dds + dds/G32R32F.dds + dds/G8R8_G8B8.dds + dds/L16.dds + dds/L6V5U5.dds + dds/L8.dds + dds/P4.dds + dds/P8.dds + dds/Q16W16V16U16.dds + dds/Q8W8V8U8.dds + dds/R16F.dds + dds/R32F.dds + dds/R3G3B2.dds + dds/R5G6B5.dds + dds/R8G8B8.dds + dds/R8G8_B8G8.dds + dds/RXGB.dds + dds/UYVY.dds + dds/V16U16.dds + dds/V8U8.dds + dds/X1R5G5B5.dds + dds/X4R4G4B4.dds + dds/X8B8G8R8.dds + dds/X8L8V8U8.dds + dds/X8R8G8B8.dds + dds/YUY2.dds + dds/mipmaps.dds) + + +#### Keys ignored in scope 1:.:.:dds.pro:: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/heif/CMakeLists.txt b/tests/auto/heif/CMakeLists.txt new file mode 100644 index 0000000..0412996 --- /dev/null +++ b/tests/auto/heif/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from heif.pro. + +##################################################################### +## tst_qheif Test: +##################################################################### + +add_qt_test(tst_qheif + SOURCES + tst_qheif.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qheif "heif" PREFIX "/" BASE "../../shared/images" FILES + heif/col320x480.heic + heif/newlogoCCW.heic) + + +#### Keys ignored in scope 1:.:.:heif.pro:: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/icns/CMakeLists.txt b/tests/auto/icns/CMakeLists.txt new file mode 100644 index 0000000..0d1e34b --- /dev/null +++ b/tests/auto/icns/CMakeLists.txt @@ -0,0 +1,31 @@ +# Generated from icns.pro. + +##################################################################### +## tst_qicns Test: +##################################################################### + +add_qt_test(tst_qicns + SOURCES + tst_qicns.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qicns "icns" PREFIX "/" BASE "../../shared/images" FILES + icns/test-32bit.icns + icns/test-jp2.icns + icns/test-legacy.icns + icns/test-png.icns + icns/test-variants.icns + icns/test-write-1024.png + icns/test-write-128.png + icns/test-write-16.png + icns/test-write-256.png + icns/test-write-32.png + icns/test-write-512.png + icns/test-write-64.png) + + +#### Keys ignored in scope 1:.:.:icns.pro:: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/jp2/CMakeLists.txt b/tests/auto/jp2/CMakeLists.txt new file mode 100644 index 0000000..b2b1563 --- /dev/null +++ b/tests/auto/jp2/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from jp2.pro. + +##################################################################### +## tst_qjp2 Test: +##################################################################### + +add_qt_test(tst_qjp2 + SOURCES + tst_qjp2.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qjp2 "jp2" PREFIX "/" BASE "../../shared/images" FILES + jp2/logo.bmp + jp2/logo.jp2) + + +#### Keys ignored in scope 1:.:.:jp2.pro:: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/mng/CMakeLists.txt b/tests/auto/mng/CMakeLists.txt new file mode 100644 index 0000000..a60a2cc --- /dev/null +++ b/tests/auto/mng/CMakeLists.txt @@ -0,0 +1,24 @@ +# Generated from mng.pro. + +##################################################################### +## tst_qmng Test: +##################################################################### + +add_qt_test(tst_qmng + SOURCES + tst_qmng.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qmng "mng" PREFIX "/" BASE "../../shared/images" FILES + mng/animation.mng + mng/ball.mng + mng/corrupt.mng + mng/dutch.mng + mng/fire.mng) + + +#### Keys ignored in scope 1:.:.:mng.pro:: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/tga/CMakeLists.txt b/tests/auto/tga/CMakeLists.txt new file mode 100644 index 0000000..25c1441 --- /dev/null +++ b/tests/auto/tga/CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from tga.pro. + +##################################################################### +## tst_qtga Test: +##################################################################### + +add_qt_test(tst_qtga + SOURCES + tst_qtga.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qtga "tga" PREFIX "/" BASE "../../shared/images" FILES + tga/test-flag.tga) + + +#### Keys ignored in scope 1:.:.:tga.pro:: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/tiff/CMakeLists.txt b/tests/auto/tiff/CMakeLists.txt new file mode 100644 index 0000000..f804003 --- /dev/null +++ b/tests/auto/tiff/CMakeLists.txt @@ -0,0 +1,71 @@ +# Generated from tiff.pro. + +##################################################################### +## tst_qtiff Test: +##################################################################### + +add_qt_test(tst_qtiff + SOURCES + tst_qtiff.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qtiff "tiff" PREFIX "/" BASE "../../shared/images" FILES + tiff/16bpc.tiff + tiff/colorful.bmp + tiff/corrupt-data.tif + tiff/gray16.tiff + tiff/grayscale-ref.tif + tiff/grayscale.tif + tiff/image.tif + tiff/image_100dpi.tif + tiff/indexed_orientation_1.tiff + tiff/indexed_orientation_2.tiff + tiff/indexed_orientation_3.tiff + tiff/indexed_orientation_4.tiff + tiff/indexed_orientation_5.tiff + tiff/indexed_orientation_6.tiff + tiff/indexed_orientation_7.tiff + tiff/indexed_orientation_8.tiff + tiff/mono_orientation_1.tiff + tiff/mono_orientation_2.tiff + tiff/mono_orientation_3.tiff + tiff/mono_orientation_4.tiff + tiff/mono_orientation_5.tiff + tiff/mono_orientation_6.tiff + tiff/mono_orientation_7.tiff + tiff/mono_orientation_8.tiff + tiff/multipage.tiff + tiff/oddsize_grayscale.tiff + tiff/oddsize_mono.tiff + tiff/original_grayscale.tiff + tiff/original_indexed.tiff + tiff/original_mono.tiff + tiff/original_rgb.tiff + tiff/rgb_orientation_1.tiff + tiff/rgb_orientation_2.tiff + tiff/rgb_orientation_3.tiff + tiff/rgb_orientation_4.tiff + tiff/rgb_orientation_5.tiff + tiff/rgb_orientation_6.tiff + tiff/rgb_orientation_7.tiff + tiff/rgb_orientation_8.tiff + tiff/rgba_adobedeflate_littleendian.tif + tiff/rgba_lzw_littleendian.tif + tiff/rgba_nocompression_bigendian.tif + tiff/rgba_nocompression_littleendian.tif + tiff/rgba_packbits_littleendian.tif + tiff/rgba_zipdeflate_littleendian.tif + tiff/teapot.tiff + tiff/tiled_grayscale.tiff + tiff/tiled_indexed.tiff + tiff/tiled_mono.tiff + tiff/tiled_oddsize_grayscale.tiff + tiff/tiled_oddsize_mono.tiff + tiff/tiled_rgb.tiff) + + +#### Keys ignored in scope 1:.:.:tiff.pro:: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/wbmp/CMakeLists.txt b/tests/auto/wbmp/CMakeLists.txt new file mode 100644 index 0000000..2db456b --- /dev/null +++ b/tests/auto/wbmp/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from wbmp.pro. + +##################################################################### +## tst_qwbmp Test: +##################################################################### + +add_qt_test(tst_qwbmp + SOURCES + tst_qwbmp.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qwbmp "wbmp" PREFIX "/" BASE "../../shared/images" FILES + wbmp/qt-logo-big.wbmp + wbmp/qt-logo-small.wbmp) + + +#### Keys ignored in scope 1:.:.:wbmp.pro:: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/webp/CMakeLists.txt b/tests/auto/webp/CMakeLists.txt new file mode 100644 index 0000000..165a0a9 --- /dev/null +++ b/tests/auto/webp/CMakeLists.txt @@ -0,0 +1,24 @@ +# Generated from webp.pro. + +##################################################################### +## tst_qwebp Test: +##################################################################### + +add_qt_test(tst_qwebp + SOURCES + tst_qwebp.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qwebp "webp" PREFIX "/" FILES + images/kollada.png + images/kollada.webp + images/kollada_animation.webp + images/kollada_lossless.webp + images/kollada_noalpha.webp) + + +#### Keys ignored in scope 1:.:.:webp.pro:: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/benchmarks/CMakeLists.txt b/tests/benchmarks/CMakeLists.txt new file mode 100644 index 0000000..16d5c86 --- /dev/null +++ b/tests/benchmarks/CMakeLists.txt @@ -0,0 +1,7 @@ +# Generated from benchmarks.pro. + + +if(ON) + add_subdirectory(mng) + add_subdirectory(tiff) +endif() diff --git a/tests/benchmarks/mng/CMakeLists.txt b/tests/benchmarks/mng/CMakeLists.txt new file mode 100644 index 0000000..ff56666 --- /dev/null +++ b/tests/benchmarks/mng/CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from mng.pro. + +##################################################################### +## tst_bench_qmng Binary: +##################################################################### + +add_qt_executable(tst_bench_qmng + GUI + SOURCES + tst_qmng.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test +) + +# Resources: +add_qt_resource(tst_bench_qmng "mng" PREFIX "/" BASE "../../shared/images" FILES + mng/animation.mng + mng/ball.mng + mng/corrupt.mng + mng/dutch.mng + mng/fire.mng) + + +#### Keys ignored in scope 1:.:.:mng.pro:: +# CONFIG = "-app_bundle" diff --git a/tests/benchmarks/tiff/CMakeLists.txt b/tests/benchmarks/tiff/CMakeLists.txt new file mode 100644 index 0000000..6ca9d8a --- /dev/null +++ b/tests/benchmarks/tiff/CMakeLists.txt @@ -0,0 +1,73 @@ +# Generated from tiff.pro. + +##################################################################### +## tst_bench_qtiff Binary: +##################################################################### + +add_qt_executable(tst_bench_qtiff + GUI + SOURCES + tst_qtiff.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test +) + +# Resources: +add_qt_resource(tst_bench_qtiff "tiff" PREFIX "/" BASE "../../shared/images" FILES + tiff/16bpc.tiff + tiff/colorful.bmp + tiff/corrupt-data.tif + tiff/gray16.tiff + tiff/grayscale-ref.tif + tiff/grayscale.tif + tiff/image.tif + tiff/image_100dpi.tif + tiff/indexed_orientation_1.tiff + tiff/indexed_orientation_2.tiff + tiff/indexed_orientation_3.tiff + tiff/indexed_orientation_4.tiff + tiff/indexed_orientation_5.tiff + tiff/indexed_orientation_6.tiff + tiff/indexed_orientation_7.tiff + tiff/indexed_orientation_8.tiff + tiff/mono_orientation_1.tiff + tiff/mono_orientation_2.tiff + tiff/mono_orientation_3.tiff + tiff/mono_orientation_4.tiff + tiff/mono_orientation_5.tiff + tiff/mono_orientation_6.tiff + tiff/mono_orientation_7.tiff + tiff/mono_orientation_8.tiff + tiff/multipage.tiff + tiff/oddsize_grayscale.tiff + tiff/oddsize_mono.tiff + tiff/original_grayscale.tiff + tiff/original_indexed.tiff + tiff/original_mono.tiff + tiff/original_rgb.tiff + tiff/rgb_orientation_1.tiff + tiff/rgb_orientation_2.tiff + tiff/rgb_orientation_3.tiff + tiff/rgb_orientation_4.tiff + tiff/rgb_orientation_5.tiff + tiff/rgb_orientation_6.tiff + tiff/rgb_orientation_7.tiff + tiff/rgb_orientation_8.tiff + tiff/rgba_adobedeflate_littleendian.tif + tiff/rgba_lzw_littleendian.tif + tiff/rgba_nocompression_bigendian.tif + tiff/rgba_nocompression_littleendian.tif + tiff/rgba_packbits_littleendian.tif + tiff/rgba_zipdeflate_littleendian.tif + tiff/teapot.tiff + tiff/tiled_grayscale.tiff + tiff/tiled_indexed.tiff + tiff/tiled_mono.tiff + tiff/tiled_oddsize_grayscale.tiff + tiff/tiled_oddsize_mono.tiff + tiff/tiled_rgb.tiff) + + +#### Keys ignored in scope 1:.:.:tiff.pro:: +# CONFIG = "-app_bundle" -- cgit v1.2.1