Imported Upstream version 1.71.0
[platform/upstream/boost.git] / libs / gil / test / image_view / 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   collection
10   concepts
11   derived_view_type
12   dynamic_step
13   is_planar
14   view_is_basic
15   view_is_mutable
16   view_is_step
17   view_type
18   view_type_from_pixel)
19   set(_target test_core_image_view_${_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(test.core.image_view.${_name} ${_target})
30
31   unset(_name)
32   unset(_target)
33 endforeach()