Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / gil / test / core / channel / CMakeLists.txt
1 #
2 # Copyright (c) 2018 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   algorithm_channel_arithmetic
10   algorithm_channel_convert
11   algorithm_channel_invert
12   algorithm_channel_multiply
13   algorithm_channel_relation
14   channel_traits
15   concepts
16   is_channel_integral
17   packed_channel_value
18   scoped_channel_value
19   test_fixture)
20   set(_test t_core_channel_${_name})
21   set(_target test_core_channel_${_name})
22
23   add_executable(${_target} "")
24   target_sources(${_target} PRIVATE ${_name}.cpp)
25   target_link_libraries(${_target}
26     PRIVATE
27       gil_compile_options
28       gil_include_directories
29       gil_dependencies)
30   target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
31   add_test(NAME ${_test} COMMAND ${_target})
32
33   unset(_name)
34   unset(_target)
35 endforeach()