• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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#
8message(STATUS "Boost.GIL: Configuring tests in test/extension/dynamic_image")
9foreach(_name
10  any_image
11  subimage_view)
12  set(_test t_ext_dynamic_image_${_name})
13  set(_target test_ext_dynamic_image_${_name})
14
15  add_executable(${_target} "")
16  target_sources(${_target} PRIVATE ${_name}.cpp)
17  target_link_libraries(${_target}
18    PRIVATE
19      gil_compile_options
20      gil_include_directories
21      gil_dependencies)
22  target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
23  add_test(NAME ${_test} COMMAND ${_target})
24
25  unset(_name)
26  unset(_target)
27  unset(_test)
28endforeach()
29