Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / gil / test / core / 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(_test t_core_pixel_${_name})
19   set(_target test_core_pixel_${_name})
20
21   add_executable(${_target} "")
22   target_sources(${_target} PRIVATE ${_name}.cpp)
23   target_link_libraries(${_target}
24     PRIVATE
25       gil_compile_options
26       gil_include_directories
27       gil_dependencies)
28   target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
29   add_test(NAME ${_test} COMMAND ${_target})
30
31   unset(_name)
32   unset(_target)
33   unset(_test)
34 endforeach()