Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > dc9b5eb62a4d8b54b80379fd86561955 > files > 1835

boost-examples-1.68.0-4.mga7.i586.rpm

#
# Copyright (c) 2017 Mateusz Loskot <mateusz at loskot dot net>
# All rights reserved.
#
# 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 "Configuring Boost.GIL examples tests")

foreach(name affine convolution dynamic_image histogram interleaved_ptr mandelbrot packed_pixel resize x_gradient)
  add_executable(gil_example_${name} ${name}.cpp)
  target_compile_definitions(gil_example_${name} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK=1)
  # Unfortunately, ALIAS of imported target is not supported
  # see https://github.com/conan-io/conan/issues/2125
  if (GIL_USE_CONAN)
    target_link_libraries(gil_example_${name}
      PRIVATE
      Boost::disable_autolinking
      Boost::filesystem
      CONAN_PKG::libjpeg
      CONAN_PKG::libpng
      CONAN_PKG::libtiff)
  else()
    target_link_libraries(gil_example_${name}
      PRIVATE
      Boost::disable_autolinking
      Boost::filesystem
      PNG::PNG
      TIFF::TIFF
      ${JPEG_LIBRARIES})
    target_include_directories(gil_example_${name} ${JPEG_INCLUDE_DIR})
  endif()
endforeach()