]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/gil/test/extension/toolbox/CMakeLists.txt
70df68db42e7882026a52311ff6398c67dbb8bd9
[ceph.git] / ceph / src / boost / 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 channel_type
13 channel_view
14 color_convert_cmyka
15 color_convert_gray
16 color_convert_gray_alpha
17 color_convert_hsl
18 color_convert_hsv
19 color_convert_lab
20 color_convert_luminance
21 color_convert_xyz
22 get_num_bits
23 get_pixel_type
24 is_bit_aligned
25 is_homogeneous
26 pixel_bit_size
27 subchroma_image)
28 set(_test t_ext_toolbox_${_name})
29 set(_target test_ext_toolbox_${_name})
30
31 add_executable(${_target} "")
32 target_sources(${_target} PRIVATE ${_name})
33 target_link_libraries(${_target}
34 PRIVATE
35 gil_compile_options
36 gil_include_directories
37 gil_dependencies)
38 target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
39 add_test(NAME ${_test} COMMAND ${_target})
40
41 unset(_name)
42 unset(_target)
43 unset(_test)
44 endforeach()
45
46 # FIXME: https://github.com/boostorg/gil/issues/235
47 foreach(_name
48 indexed_image)
49 set(_test t_ext_toolbox_${_name})
50 set(_target test_ext_toolbox_${_name})
51
52 add_executable(${_target} "")
53 target_sources(${_target} PRIVATE ${_name})
54 target_link_libraries(${_target}
55 PRIVATE
56 gil_compile_options
57 gil_include_directories
58 gil_dependencies)
59 add_test(NAME ${_test} COMMAND ${_target})
60
61 unset(_name)
62 unset(_target)
63 unset(_test)
64 endforeach()