IF(NOT WT_HAS_WRASTERIMAGE)
  MESSAGE(STATUS "** Not building mandelbrot example: requires Wt::WRasterImage.")
ELSE(NOT WT_HAS_WRASTERIMAGE)

  WT_ADD_EXAMPLE(mandelbrot.wt MandelbrotImage.C MandelbrotExample.C)

  INCLUDE_DIRECTORIES(
    ${GD_INCLUDE_DIRS}
    ${WT_INCLUDE_DIR}
  )

  ADD_DEPENDENCIES(mandelbrot.wt wt ${EXAMPLES_CONNECTOR})
  TARGET_LINK_LIBRARIES(mandelbrot.wt ${SSL_LIBRARIES} ${BOOST_WT_LIBRARIES} ${BOOST_WTHTTP_LIBRARIES} ${ZLIB_LIBRARIES} ${ASIO_LIBRARIES} ${GD_LIBRARIES})

ENDIF(NOT WT_HAS_WRASTERIMAGE)

