CMakeLists.txt 771 B

12345678910111213141516171819202122232425262728
  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. foreach(_name
  9. concepts
  10. homogeneous_color_base
  11. static_transform)
  12. set(_test t_core_color_base_${_name})
  13. set(_target test_core_color_base_${_name})
  14. add_executable(${_target} "")
  15. target_sources(${_target} PRIVATE ${_name}.cpp)
  16. target_link_libraries(${_target}
  17. PRIVATE
  18. gil_compile_options
  19. gil_include_directories
  20. gil_dependencies)
  21. target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
  22. add_test(NAME ${_test} COMMAND ${_target})
  23. unset(_name)
  24. unset(_target)
  25. unset(_test)
  26. endforeach()