mirror of
https://github.com/boostorg/gil.git
synced 2026-02-23 03:42:09 +00:00
Replace global compile options and definitions with interface targets. Remove globing for headers. Set project version based on GIL version. Remove GIL_BUILD_TESTS option as redundant - there is no point in using CMake for development of header-only library if no tests are to be built.
21 lines
552 B
CMake
21 lines
552 B
CMake
#
|
|
# Copyright (c) 2018 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)
|
|
#
|
|
foreach(name
|
|
for_each_pixel
|
|
std_fill)
|
|
|
|
add_executable(test_core_${name} "")
|
|
target_sources(test_core_${name} PRIVATE ${name}.cpp)
|
|
target_link_libraries(test_core_${name}
|
|
PRIVATE
|
|
gil_compile_options
|
|
gil_include_directories
|
|
Boost::boost)
|
|
add_test(test.core.${name} test_core_${name})
|
|
endforeach()
|