From 213c08259979893609802bb8500d0316d058a3bd Mon Sep 17 00:00:00 2001 From: Thomas Feuvrier <thomas.feuvrier@c-s.fr> Date: Fri, 7 Jul 2006 11:30:04 +0000 Subject: [PATCH] Ajout de l'option OTB_USE_PATENTED pour compiler ou non les exemples patented. --- CMakeLists.txt | 6 ++++++ Examples/CMakeLists.txt | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b2d2aa3f61..e4176698a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -254,6 +254,12 @@ IF( OTB_SHOW_ALL_MSG_DEBUG ) ENDIF( OTB_SHOW_ALL_MSG_DEBUG ) +#----------------------------------------------------------------------------- +# Option for generate Patented examples !!! +OPTION(OTB_USE_PATENTED "Build patented examples. ITK must be genereted whith patented option (ITK_USE_PATENTED = ON)." OFF) +MARK_AS_ADVANCED(OTB_USE_PATENTED) + + IF(WIN32) IF(BUILD_SHARED_LIBS) SET(OTB_COMMON_BUILD_TYPE "SHARED") diff --git a/Examples/CMakeLists.txt b/Examples/CMakeLists.txt index fce22bea0d..fcd0194629 100644 --- a/Examples/CMakeLists.txt +++ b/Examples/CMakeLists.txt @@ -6,7 +6,6 @@ SUBDIRS( DataRepresentation IO Filtering - Patented ChangeDetection Visu Learning @@ -14,3 +13,8 @@ SUBDIRS( Segmentation Iterators ) + +IF(OTB_USE_PATENTED) + SUBDIRS( Patented ) +ENDIF(OTB_USE_PATENTED) + -- GitLab