X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=2e2a1e564e756f5906f199b7eb0d9e10bc87f368;hb=279aed8cb3483318205a8b652e05457a7fc94dec;hp=67f483b2dedeb0e5e74d947cbd87050882ceb5b0;hpb=90af79e0712a2b807b2388456d13d94c50e8f0ca;p=gdcm.git 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