2 # Copyright (c) 2019 Mateusz Loskot <mateusz at loskot dot net>
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)
8 # *** IMPORTANT MAINTENANCE RULES ***
9 # These are GIL's original, comprehensive, all-in-one test suites.
10 # * Keep as reference.
13 # * Modify only if absolutely necessary (a bug found in the tests).
14 # See the accompanying README.md
16 message(STATUS "Boost.GIL: Configuring tests in test/legacy")
22 set(_test t_legacy_${_name})
23 set(_target test_legacy_${_name})
25 add_executable(${_target} "")
26 target_sources(${_target} PRIVATE ${_name}.cpp error_if.cpp)
27 target_link_libraries(${_target}
30 gil_include_directories
32 target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
33 add_test(NAME ${_test} COMMAND ${_target})
40 # Add extra source files accompanying image.cpp
43 set(_test t_legacy_${_name})
44 set(_target test_legacy_${_name})
46 add_executable(${_target} "")
47 target_sources(${_target} PRIVATE
52 target_link_libraries(${_target}
55 gil_include_directories
57 target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
58 add_test(NAME ${_test} COMMAND ${_target}
59 ${CMAKE_CURRENT_SOURCE_DIR}/gil_reference_checksums.txt)