2
0
mirror of https://github.com/boostorg/gil.git synced 2026-02-23 03:42:09 +00:00

Require BOOST_GIL_USE_CONCEPT_CHECK when compiling test/*/concepts.cpp

Add BOOST_GIL_USE_CONCEPT_CHECK define to CMakeLists.txt files.
Rename channel_concepts.cpp to concepts.cpp.
This commit is contained in:
Mateusz Łoskot
2019-02-22 22:02:25 +01:00
parent 52ed09f0bc
commit 3d8469eafe
10 changed files with 17 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ foreach(_name
gil_compile_options
gil_include_directories
gil_dependencies)
target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
add_test(test.core.${_name} ${_target})
unset(_name)

View File

@@ -16,6 +16,7 @@ foreach(_name
gil_compile_options
gil_include_directories
gil_dependencies)
target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
add_test(test.core.${_name} ${_target})
unset(_name)

View File

@@ -5,6 +5,9 @@
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#ifndef BOOST_GIL_USE_CONCEPT_CHECK
#error Compile with BOOST_GIL_USE_CONCEPT_CHECK defined
#endif
#include <boost/gil.hpp>
#include <boost/concept_check.hpp>

View File

@@ -24,6 +24,7 @@ foreach(_name
gil_compile_options
gil_include_directories
gil_dependencies)
target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
add_test(test.core.${_name} ${_target})
unset(_name)

View File

@@ -5,6 +5,9 @@
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#ifndef BOOST_GIL_USE_CONCEPT_CHECK
#error Compile with BOOST_GIL_USE_CONCEPT_CHECK defined
#endif
// FIXME: There are missing headers internally, leading to incomplete types
#if 0
#include <boost/gil/image_view.hpp>

View File

@@ -16,6 +16,7 @@ foreach(_name
gil_compile_options
gil_include_directories
gil_dependencies)
target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
add_test(test.core.${_name} ${_target})
unset(_name)

View File

@@ -5,6 +5,9 @@
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#ifndef BOOST_GIL_USE_CONCEPT_CHECK
#error Compile with BOOST_GIL_USE_CONCEPT_CHECK defined
#endif
#include <boost/gil.hpp>
#include <boost/concept_check.hpp>

View File

@@ -17,6 +17,7 @@ foreach(_name
gil_compile_options
gil_include_directories
gil_dependencies)
target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK)
add_test(test.core.${_name} ${_target})
unset(_name)

View File

@@ -5,6 +5,9 @@
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#ifndef BOOST_GIL_USE_CONCEPT_CHECK
#error Compile with BOOST_GIL_USE_CONCEPT_CHECK defined
#endif
#include <boost/gil/concepts.hpp>
#include <boost/gil/point.hpp>