Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / gil / test / core / image_processing / CMakeLists.txt
1 # Boost.GIL (Generic Image Library) - tests
2 #
3 # Copyright 2019 Miral Shah <miralshah2211@gmail.com>
4 #
5 # Use, modification and distribution are subject to the Boost Software License,
6 # Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 # http://www.boost.org/LICENSE_1_0.txt)
8 #
9 foreach(_name
10     threshold_binary
11     threshold_truncate
12     threshold_otsu)
13     set(_test t_core_image_processing_${_name})
14     set(_target test_core_image_processing_${_name})
15
16     add_executable(${_target} "")
17     target_sources(${_target} PRIVATE ${_name}.cpp)
18     target_link_libraries(${_target}
19             PRIVATE
20             gil_compile_options
21             gil_include_directories
22             gil_dependencies)
23     target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
24     add_test(NAME ${_test} COMMAND ${_target})
25
26     unset(_name)
27     unset(_target)
28 endforeach()
29
30 foreach(_name
31   lanczos_scaling
32   simple_kernels
33   harris
34   hessian
35   box_filter
36   median_filter
37   sobel_scharr)
38   set(_test t_core_image_processing_${_name})
39   set(_target test_core_image_processing_${_name})
40
41   add_executable(${_target} "")
42   target_sources(${_target} PRIVATE ${_name}.cpp)
43   target_link_libraries(${_target}
44     PRIVATE
45       gil_compile_options
46       gil_include_directories
47       gil_dependencies)
48   add_test(NAME ${_test} COMMAND ${_target})
49
50   unset(_name)
51   unset(_target)
52   unset(_test)
53 endforeach()