From 279aed8cb3483318205a8b652e05457a7fc94dec Mon Sep 17 00:00:00 2001 From: malaterre Date: Wed, 12 May 2004 02:45:35 +0000 Subject: [PATCH] ENH: Now Example is an option, ON by default --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67f483b2..2e2a1e56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,8 +31,14 @@ MARK_AS_ADVANCED(LIBRARY_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH) SUBDIRS( src Dicts - Example ) +#----------------------------------------------------------------------------- +# Example subdir: + +OPTION(BUILD_EXAMPLES "Build GDCM examples." ON) +IF(BUILD_EXAMPLES) + SUBDIRS(Example) +ENDIF(BUILD_EXAMPLES) #----------------------------------------------------------------------------- # Adding GDCM_DATA_ROOT -- 2.45.0