diff --git a/CMakeLists.txt b/CMakeLists.txt
index bf1136a8df818792b70678347826d00cf91eee04..5aa91a83f22b50bc9d3b77ea54e989ec99eeae09 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -261,6 +261,15 @@ ENDIF( OTB_SHOW_ALL_MSG_DEBUG )
 OPTION(OTB_DISABLE_CXX_EXAMPLES_TESTING "Disable examples testing." OFF)
 MARK_AS_ADVANCED(OTB_DISABLE_CXX_EXAMPLES_TESTING)
 
+#-----------------------------------------------------------------------------
+# Option to define streaming activation in applications
+# Use by otbConfigure.h.in
+SET(OTB_STREAM_IMAGE_SIZE_TO_ACTIVATE_STREAMING 8*2000*2000 CACHE STRING "Image size to activate using streaming for applications.")
+MARK_AS_ADVANCED(OTB_STREAM_IMAGE_SIZE_TO_ACTIVATE_STREAMING)
+SET(OTB_STREAM_MAX_SIZE_BUFFER_FOR_STREAMING 8*2000*10 CACHE STRING "Max size buffer for streaming.")
+MARK_AS_ADVANCED(OTB_STREAM_MAX_SIZE_BUFFER_FOR_STREAMING)
+
+
 #-----------------------------------------------------------------------------
 # Option for generate Patented examples  !!!
 OPTION(OTB_USE_PATENTED "Build patented examples. ITK must be genereted whith patented option (ITK_USE_PATENTED = ON)." OFF)
diff --git a/otbConfigure.h.in b/otbConfigure.h.in
index 6bfaf90434ae7d10df14214dc9badf77274c0898..17bb7d53433555685a3ac509f91a83de4c9ae620 100644
--- a/otbConfigure.h.in
+++ b/otbConfigure.h.in
@@ -46,3 +46,8 @@
 #define OTB_VERSION_MINOR @OTB_VERSION_MINOR@
 #define OTB_VERSION_PATCH @OTB_VERSION_PATCH@
 #define OTB_VERSION_STRING "@OTB_VERSION_STRING@"
+
+/* Streaming configuration for application */
+#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@
+