2 # Copyright (c) 2017 Mateusz Loskot <mateusz at loskot dot net>
5 # Distributed under the Boost Software License, Version 1.0.
6 # (See accompanying file LICENSE_1_0.txt or copy at
7 # http://www.boost.org/LICENSE_1_0.txt)
9 message(STATUS "Boost.GIL: Configuring IO extension tests")
20 if(GIL_ENABLE_EXT_IO_RAW)
21 list(APPEND _formats raw)
24 foreach(_name ${_formats})
25 set(_target test_ext_io_${_name})
27 add_executable(${_target} "")
28 target_link_libraries(${_target}
31 gil_include_directories
33 target_compile_definitions(${_target}
35 BOOST_GIL_IO_TEST_ALLOW_READING_IMAGES
36 BOOST_GIL_IO_TEST_ALLOW_WRITING_IMAGES)
37 add_test(test.ext.io.${_name} ${_target})
45 target_sources(test_ext_io_simple
49 target_sources(test_ext_io_bmp
51 bmp_old_test.cpp bmp_read_test.cpp bmp_test.cpp bmp_write_test.cpp)
53 target_sources(test_ext_io_jpeg
55 jpeg_test.cpp jpeg_old_test.cpp jpeg_read_test.cpp jpeg_write_test.cpp)
57 target_sources(test_ext_io_png
59 png_test.cpp png_old_test.cpp png_file_format_test.cpp png_read_test.cpp)
61 target_sources(test_ext_io_pnm
63 pnm_test.cpp pnm_old_test.cpp pnm_read_test.cpp pnm_write_test.cpp)
65 if(GIL_ENABLE_EXT_IO_RAW)
66 target_sources(test_ext_io_raw
71 target_sources(test_ext_io_targa
73 targa_test.cpp targa_old_test.cpp targa_read_test.cpp targa_write_test.cpp)
75 target_sources(test_ext_io_tiff
77 tiff_file_format_test.cpp
79 tiff_subimage_test.cpp
81 tiff_tiled_float_test.cpp
82 tiff_tiled_minisblack_test_1-10.cpp
83 tiff_tiled_minisblack_test_11-20.cpp
84 tiff_tiled_minisblack_test_21-31_32-64.cpp
85 tiff_tiled_minisblack_write_test_1-10.cpp
86 tiff_tiled_minisblack_write_test_11-20.cpp
87 tiff_tiled_minisblack_write_test_21-31_32-64.cpp
88 tiff_tiled_palette_test_1-8.cpp
89 tiff_tiled_palette_test_8-16.cpp
90 tiff_tiled_palette_write_test_1-8.cpp
91 tiff_tiled_palette_write_test_8-16.cpp
92 tiff_tiled_rgb_contig_test_1-10.cpp
93 tiff_tiled_rgb_contig_test_11-20.cpp
94 tiff_tiled_rgb_contig_test_21-31_32_64.cpp
95 tiff_tiled_rgb_contig_write_test_1-10.cpp
96 tiff_tiled_rgb_contig_write_test_11-20.cpp
97 tiff_tiled_rgb_contig_write_test_21-31_32_64.cpp
98 tiff_tiled_rgb_planar_test_1-10.cpp
99 tiff_tiled_rgb_planar_test_11-20.cpp
100 tiff_tiled_rgb_planar_test_21-31_32_64.cpp