X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=cmake%2Fdependencies.cmake;h=bdd63163dd9f99822bef2e5d4743d0817d840f3e;hb=2dd75b606c94bff1090e46e625e74f7921a1fd33;hp=62a6a1503f4d0704db0810de062d85d12cd333b2;hpb=d4377ec80fd4e6f0156bb0673bb661acbf5b8cec;p=clitk.git diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index 62a6a15..bdd6316 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -44,30 +44,25 @@ find_package(Gengetopt) #========================================================= # Find libstatgrab is installed, add clitkMemoryUsage.cxx in the library -if(NOT DEFINED CLITK_MEMORY_INFO OR CLITK_MEMORY_INFO) - find_library(LIBSTATGRAB NAMES statgrab PATHS) - if(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") +#if(NOT DEFINED CLITK_MEMORY_INFO OR CLITK_MEMORY_INFO) +# find_library(LIBSTATGRAB NAMES statgrab PATHS) +# if(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") # message("Install libstatgrab (http://www.i-scream.org/libstatgrab/) for memory usage information") set(CLITK_MEMORY_INFO OFF) - else(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") - set(CLITK_MEMORY_INFO ON) - endif(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") -endif() +# else(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") +# set(CLITK_MEMORY_INFO ON) +# endif(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") +#endif() #========================================================= #========================================================= ### Check if ITK was compiled with SYSTEM_GDCM = ON set(CLITK_USE_SYSTEM_GDCM FALSE) -if(ITK_VERSION_MAJOR LESS "4") - if(ITK_USE_SYSTEM_GDCM) - set(CLITK_USE_SYSTEM_GDCM TRUE) - endif(ITK_USE_SYSTEM_GDCM) -else() - # ITK4 creates a target for each gdcm library when it compiles GDCM - get_target_property(GDCMDICTTARG gdcmDICT TYPE ) - if(NOT GDCMDICTTARG) - set(CLITK_USE_SYSTEM_GDCM TRUE) - endif() +# ITK4 creates a target for each gdcm library when it compiles GDCM +get_target_property(GDCMDICTTARG gdcmDICT TYPE ) +if(NOT GDCMDICTTARG) + set(CLITK_USE_SYSTEM_GDCM TRUE) endif() +