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 tests in test/extension/io")
20 if(GIL_ENABLE_EXT_IO_RAW)
21 list(APPEND _formats raw)
24 foreach(_name ${_formats})
25 set(_test t_ext_io_${_name})
26 set(_target test_ext_io_${_name})
28 add_executable(${_target} "")
29 target_link_libraries(${_target}
32 gil_include_directories
34 target_compile_definitions(${_target}
36 BOOST_GIL_IO_TEST_ALLOW_READING_IMAGES
37 BOOST_GIL_IO_TEST_ALLOW_WRITING_IMAGES)
38 add_test(NAME ${_test} COMMAND ${_target})
47 target_sources(test_ext_io_simple
51 target_sources(test_ext_io_bmp
53 bmp_old_test.cpp bmp_read_test.cpp bmp_test.cpp bmp_write_test.cpp)
55 target_sources(test_ext_io_jpeg
57 jpeg_test.cpp jpeg_old_test.cpp jpeg_read_test.cpp jpeg_write_test.cpp)
59 target_sources(test_ext_io_png
61 png_test.cpp png_old_test.cpp png_file_format_test.cpp png_read_test.cpp)
63 target_sources(test_ext_io_pnm
65 pnm_test.cpp pnm_old_test.cpp pnm_read_test.cpp pnm_write_test.cpp)
67 if(GIL_ENABLE_EXT_IO_RAW)
68 target_sources(test_ext_io_raw
73 target_sources(test_ext_io_targa
75 targa_test.cpp targa_old_test.cpp targa_read_test.cpp targa_write_test.cpp)
77 target_sources(test_ext_io_tiff
79 tiff_file_format_test.cpp
81 tiff_subimage_test.cpp
83 tiff_tiled_float_test.cpp
84 tiff_tiled_minisblack_test_1-10.cpp
85 tiff_tiled_minisblack_test_11-20.cpp
86 tiff_tiled_minisblack_test_21-31_32-64.cpp
87 tiff_tiled_minisblack_write_test_1-10.cpp
88 tiff_tiled_minisblack_write_test_11-20.cpp
89 tiff_tiled_minisblack_write_test_21-31_32-64.cpp
90 tiff_tiled_palette_test_1-8.cpp
91 tiff_tiled_palette_test_8-16.cpp
92 tiff_tiled_palette_write_test_1-8.cpp
93 tiff_tiled_palette_write_test_8-16.cpp
94 tiff_tiled_rgb_contig_test_1-10.cpp
95 tiff_tiled_rgb_contig_test_11-20.cpp
96 tiff_tiled_rgb_contig_test_21-31_32_64.cpp
97 tiff_tiled_rgb_contig_write_test_1-10.cpp
98 tiff_tiled_rgb_contig_write_test_11-20.cpp
99 tiff_tiled_rgb_contig_write_test_21-31_32_64.cpp
100 tiff_tiled_rgb_planar_test_1-10.cpp
101 tiff_tiled_rgb_planar_test_11-20.cpp
102 tiff_tiled_rgb_planar_test_21-31_32_64.cpp