project(EigenDemos)

add_custom_target(demos)

if(NOT EIGEN_TEST_NOQT)
  if (PARAVIEW_QT_VERSION VERSION_GREATER "4")
    set (Qt5_FIND_COMPONENTS "")
    include (ParaViewQt5)
  else ()
    find_package(Qt4)
  endif ()
  if(QT5_FOUND OR QT4_FOUND)
    add_subdirectory(mandelbrot)
    add_subdirectory(opengl)
  else()
    message(STATUS "Qt not found, so disabling the mandelbrot and opengl demos")
  endif()
endif()
