MESSAGE(FATAL_ERROR "Impossible to find OpenGL on your system.\nCannot build OTB Visu module without OpenGL library.\nInstall OpenGL on your system OR set OTB_USE_VISU to OFF to disable OTB Visu module generation !")
ENDIF( NOT OPENGL_FOUND )
MESSAGE(FATAL_ERROR "Impossible to find OpenGL on your system.\nCannot build OTB Visu module without OpenGL library.\nInstall OpenGL on your system OR set OTB_USE_VISU_GUI to OFF to disable OTB Visu module generation !")
ENDIF( NOT OPENGL_FOUND )
IF( NOT OPENGL_GLU_FOUND )
MESSAGE(FATAL_ERROR "Impossible to find GLU library on your system.\nCannot build OTB Visu module without GLU library.\nInstall GLU library on your system OR set OTB_USE_VISU to OFF to disable OTB Visu module generation !")
MESSAGE(FATAL_ERROR "Impossible to find GLU library on your system.\nCannot build OTB Visu module without GLU library.\nInstall GLU library on your system OR set OTB_USE_VISU_GUI to OFF to disable OTB Visu module generation !")
ENDIF( NOT OPENGL_GLU_FOUND )
IF(OPENGL_INCLUDE_DIR)
...
...
@@ -290,11 +290,11 @@ IF(OTB_USE_VISU_GUI)
FIND_PACKAGE(FLTK)
# If an external fltk is found, do not provide the internal fltk choice
IF(NOT FLTK_FOUND)
OPTION(OTB_USE_EXTERNAL_FLTK "Use an outside build of FLTK." OFF)
ELSE(NOT FLTK_FOUND)
SET(OTB_USE_EXTERNAL_FLTK ON)
ENDIF(NOT FLTK_FOUND)
IF(FLTK_FOUND)
OPTION(OTB_USE_EXTERNAL_FLTK "Use an outside build of FLTK." ON)
ELSE(FLTK_FOUND)
OPTION(OTB_USE_EXTERNAL_FLTK "Use an outside build of FLTK." OFF)