X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=130073046e856d8648e31f97e98bf20131d07ad1;hb=HEAD;hp=3d6c22befb12d439a1329d67c0393b2b13574983;hpb=68fafa257a977e36a4c4f0303002dabc2ff6454e;p=gdcm.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d6c22be..13007304 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,24 @@ +# --------------------------------- +# +# Unless you are an experimented cmake user, +# have a look at : +# http://www.creatis.insa-lyon.fr/site/fr/CreatoolsGettingStarted-v2.0.X +# before starting. +# +# --------------------------------- + PROJECT(GDCM) CMAKE_MINIMUM_REQUIRED(VERSION 2.0) # okay in fact you need at least cmake 2.0.4 to get swig working properly # and you cannot use cmake 2.0.6 out of the box due to a bug (patched in debian package) + + if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW) + endif(COMMAND cmake_policy) + + + #----------------------------------------------------------------------------- # GDCM version number, usefull for packaging and doxygen doc: SET(GDCM_MAJOR_VERSION 1) @@ -285,6 +301,8 @@ IF(GDCM_VTK) IF(VTK_FOUND) #INCLUDE(${VTK_USE_FILE}) SUBDIRS(vtk) + ELSEIF(VTK_FOUND) + message(FATAL_ERROR "VTK not found") ENDIF(VTK_FOUND) ENDIF(GDCM_VTK)