CMakeLists.txt 815 B

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