Imported Upstream version 1.71.0
[platform/upstream/boost.git] / libs / gil / test / pixel / CMakeLists.txt
1 #
2 # Copyright (c) 2019 Mateusz Loskot <mateusz at loskot dot net>
3 #
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
7 #
8 foreach(_name
9   concepts
10   bit_aligned_pixel_reference
11   is_pixel
12   is_planar
13   num_channels
14   packed_pixel
15   pixel_reference_is_mutable
16   pixels_are_compatible
17   test_fixture)
18   set(_target test_core_pixel_${_name})
19
20   add_executable(${_target} "")
21   target_sources(${_target} PRIVATE ${_name}.cpp)
22   target_link_libraries(${_target}
23     PRIVATE
24       gil_compile_options
25       gil_include_directories
26       gil_dependencies)
27   target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
28   add_test(test.core.pixel.${_name} ${_target})
29
30   unset(_name)
31   unset(_target)
32 endforeach()