diff --git a/CMakeLists.txt b/CMakeLists.txt index ef46f67ebf408bd62e05e6947e8e1bd6306319d0..eac0b169a8e5eff043b78af0a69e938986febbec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,13 +230,6 @@ IF(OTB_USE_VISU_GUI) #------------------------------- OPTION(OTB_GL_USE_ACCEL "Use video card acceleration." ON) MARK_AS_ADVANCED(OTB_GL_USE_ACCEL) - IF(OTB_GL_USE_ACCEL) - # Add compiler option - ADD_DEFINITIONS(-DOTB_GL_USE_ACCEL) - ENDIF(OTB_GL_USE_ACCEL) - - - #------------------------------- # FLTK Library diff --git a/Code/Visu/otbImageWidgetBase.txx b/Code/Visu/otbImageWidgetBase.txx index a0fff805d39d5beecccb2bca462ee9830f33b98a..0e81e5ed7bf40da2fa0f44c572cf5e4a31d0814b 100644 --- a/Code/Visu/otbImageWidgetBase.txx +++ b/Code/Visu/otbImageWidgetBase.txx @@ -18,7 +18,7 @@ #ifndef __otbImageWidgetBase_txx #define __otbImageWidgetBase_txx - +#include "otbConfigure.h" #include "itkImageRegionConstIteratorWithIndex.h" #include "itkMacro.h" #include "otbMacro.h" diff --git a/otbConfigure.h.in b/otbConfigure.h.in index 17bb7d53433555685a3ac509f91a83de4c9ae620..089f886e17641ad884797deaa6e6ec47bd9e0939 100644 --- a/otbConfigure.h.in +++ b/otbConfigure.h.in @@ -51,3 +51,6 @@ #define OTB_STREAM_IMAGE_SIZE_TO_ACTIVATE_STREAMING @OTB_STREAM_IMAGE_SIZE_TO_ACTIVATE_STREAMING@ #define OTB_STREAM_MAX_SIZE_BUFFER_FOR_STREAMING @OTB_STREAM_MAX_SIZE_BUFFER_FOR_STREAMING@ +/* Use opengl acceleration */ +#cmakedefine OTB_GL_USE_ACCEL +