Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / gil / test / core / 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   planar_rgba_view
15   subimage_view
16   view_is_basic
17   view_is_mutable
18   view_is_step
19   view_type
20   view_type_from_pixel)
21   set(_test t_core_image_view_${_name})
22   set(_target test_core_image_view_${_name})
23
24   add_executable(${_target} "")
25   target_sources(${_target} PRIVATE ${_name}.cpp)
26   target_link_libraries(${_target}
27     PRIVATE
28       gil_compile_options
29       gil_include_directories
30       gil_dependencies)
31   target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
32   add_test(NAME ${_test} COMMAND ${_target})
33
34   unset(_name)
35   unset(_target)
36   unset(_test)
37 endforeach()