CMakeLists.txt 890 B

12345678910111213141516171819202122232425262728293031323334353637
  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/numeric")
  10. foreach(_name
  11. channel_numeric_operations
  12. convolve_cols
  13. convolve_rows
  14. convolve
  15. kernel
  16. matrix3x2
  17. numeric
  18. pixel_numeric_operations
  19. convolve_2d
  20. extend_boundary)
  21. set(_test t_ext_numeric_${_name})
  22. set(_target test_ext_numeric_${_name})
  23. add_executable(${_target} "")
  24. target_sources(${_target} PRIVATE ${_name}.cpp)
  25. target_link_libraries(${_target}
  26. PRIVATE
  27. gil_compile_options
  28. gil_include_directories
  29. gil_dependencies)
  30. add_test(NAME ${_test} COMMAND ${_target})
  31. unset(_name)
  32. unset(_target)
  33. unset(_test)
  34. endforeach()