Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / gil / test / extension / toolbox / CMakeLists.txt
1 #
2 # Copyright (c) 2017 Mateusz Loskot <mateusz at loskot dot net>
3 # All rights reserved.
4 #
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)
8 #
9 message(STATUS "Boost.GIL: Configuring tests in test/extension/toolbox")
10
11 foreach(_name
12   all)
13   set(_test t_ext_toolbox_${_name})
14   set(_target test_ext_toolbox_${_name})
15
16   add_executable(${_target} "")
17   target_sources(${_target}
18     PRIVATE
19       test.cpp
20       channel_type.cpp
21       channel_view.cpp
22       cmyka.cpp
23       get_num_bits.cpp
24       get_pixel_type.cpp
25       gray_alpha.cpp
26       gray_to_rgba.cpp
27       hsl_hsv_test.cpp
28       indexed_image_test.cpp
29       is_bit_aligned.cpp
30       is_homogeneous.cpp
31       is_similar.cpp
32       lab_test.cpp
33       pixel_bit_size.cpp
34       rgb_to_luminance.cpp
35       # TODO: Add subchroma_image.cpp after fixing run-time failure,
36       #       for details see https://github.com/boostorg/gil/pull/164
37       #subchroma_image.cpp
38       xyz_test.cpp)
39   target_link_libraries(${_target}
40     PRIVATE
41       gil_compile_options
42       gil_include_directories
43       gil_dependencies)
44   add_test(NAME ${_test} COMMAND ${_target})
45
46   unset(_name)
47   unset(_target)
48   unset(_test)
49 endforeach()