CMakeLists.txt 950 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # Copyright (c) 2018 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. foreach(_name
  9. algorithm_channel_arithmetic
  10. algorithm_channel_convert
  11. algorithm_channel_invert
  12. algorithm_channel_multiply
  13. algorithm_channel_relation
  14. channel_traits
  15. concepts
  16. is_channel_integral
  17. packed_channel_value
  18. scoped_channel_value
  19. test_fixture)
  20. set(_test t_core_channel_${_name})
  21. set(_target test_core_channel_${_name})
  22. add_executable(${_target} "")
  23. target_sources(${_target} PRIVATE ${_name}.cpp)
  24. target_link_libraries(${_target}
  25. PRIVATE
  26. gil_compile_options
  27. gil_include_directories
  28. gil_dependencies)
  29. target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
  30. add_test(NAME ${_test} COMMAND ${_target})
  31. unset(_name)
  32. unset(_target)
  33. endforeach()