# try to find GLUT, and output a message if it is not found.
find_package(GLUT)

# if glut is found, build the demo
if(GLUT_FOUND)
  include_directories(${GLUT_INCLUDE_DIR})
  add_oiv_qt_executable(ivGLUT
    IvGLUT.cxx
  )
  target_link_libraries(ivGLUT ${GLUT_LIBRARIES} ${OpenInventor_LIBRARIES})
endif()
