CMakeLists.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. 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. unset(_name)
  25. unset(_target)
  26. endforeach()
  27. foreach(_name
  28. lanczos_scaling
  29. simple_kernels
  30. harris
  31. hessian
  32. box_filter
  33. median_filter
  34. sobel_scharr)
  35. set(_test t_core_image_processing_${_name})
  36. set(_target test_core_image_processing_${_name})
  37. add_executable(${_target} "")
  38. target_sources(${_target} PRIVATE ${_name}.cpp)
  39. target_link_libraries(${_target}
  40. PRIVATE
  41. gil_compile_options
  42. gil_include_directories
  43. gil_dependencies)
  44. add_test(NAME ${_test} COMMAND ${_target})
  45. unset(_name)
  46. unset(_target)
  47. unset(_test)
  48. endforeach()