CMakeLists.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # Copyright (c) 2017 Mateusz Loskot <mateusz at loskot dot net>
  3. # All rights reserved.
  4. #
  5. # Distributed under the Boost Software License, Version 1.0.
  6. # (See accompanying file LICENSE_1_0.txt or copy at
  7. # http://www.boost.org/LICENSE_1_0.txt)
  8. #
  9. message(STATUS "Boost.GIL: Configuring tests in test/extension/toolbox")
  10. foreach(_name
  11. all)
  12. set(_test t_ext_toolbox_${_name})
  13. set(_target test_ext_toolbox_${_name})
  14. add_executable(${_target} "")
  15. target_sources(${_target}
  16. PRIVATE
  17. test.cpp
  18. channel_type.cpp
  19. channel_view.cpp
  20. cmyka.cpp
  21. get_num_bits.cpp
  22. get_pixel_type.cpp
  23. gray_alpha.cpp
  24. gray_to_rgba.cpp
  25. hsl_hsv_test.cpp
  26. indexed_image_test.cpp
  27. is_bit_aligned.cpp
  28. is_homogeneous.cpp
  29. is_similar.cpp
  30. lab_test.cpp
  31. pixel_bit_size.cpp
  32. rgb_to_luminance.cpp
  33. # TODO: Add subchroma_image.cpp after fixing run-time failure,
  34. # for details see https://github.com/boostorg/gil/pull/164
  35. #subchroma_image.cpp
  36. xyz_test.cpp)
  37. target_link_libraries(${_target}
  38. PRIVATE
  39. gil_compile_options
  40. gil_include_directories
  41. gil_dependencies)
  42. add_test(NAME ${_test} COMMAND ${_target})
  43. unset(_name)
  44. unset(_target)
  45. unset(_test)
  46. endforeach()