d7884ee1a6
Align with `subsampled_view` overloads accepting `point_t` and `coord_t` Both types are based on `std::ptrdiff_t`. Fixes compilation warnings. Tidy up `subimage_view` and `subsampled_view` with trailing return. Add tests for `subimage_view` in core and dynamic_image extension. (First tests for the dynamic_image, hurray! :)) Add explicit cast to double in division operator for point<T> to fix compilation warnings.
28 lines
815 B
CMake
28 lines
815 B
CMake
#
|
|
# Copyright (c) 2019 Mateusz Loskot <mateusz at loskot dot net>
|
|
#
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# (See accompanying file LICENSE_1_0.txt or copy at
|
|
# http://www.boost.org/LICENSE_1_0.txt)
|
|
#
|
|
message(STATUS "Boost.GIL: Configuring tests in test/extension/dynamic_image")
|
|
foreach(_name
|
|
subimage_view)
|
|
set(_test t_ext_dynamic_image_${_name})
|
|
set(_target test_ext_dynamic_image_${_name})
|
|
|
|
add_executable(${_target} "")
|
|
target_sources(${_target} PRIVATE ${_name}.cpp)
|
|
target_link_libraries(${_target}
|
|
PRIVATE
|
|
gil_compile_options
|
|
gil_include_directories
|
|
gil_dependencies)
|
|
target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
|
|
add_test(NAME ${_test} COMMAND ${_target})
|
|
|
|
unset(_name)
|
|
unset(_target)
|
|
unset(_test)
|
|
endforeach()
|