X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=cmake%2Fbuild_opt.cmake;h=54a35317f71a5373d213f1f3d52b152ae0869f59;hb=2490add275e6bca52f8b6cc23ad09a389fee0f17;hp=28294019837d4736ef427e5dc06a2c7a7cb3cf49;hpb=f960afb3b3a66c547815425995d6f7c63dc811cd;p=clitk.git diff --git a/cmake/build_opt.cmake b/cmake/build_opt.cmake index 2829401..54a3531 100644 --- a/cmake/build_opt.cmake +++ b/cmake/build_opt.cmake @@ -19,6 +19,9 @@ endif(BUILD_DOXYGEN) # Compilation options option(CLITK_EXPERIMENTAL "Enable experimental software and features" OFF) +mark_as_advanced(CLITK_EXPERIMENTAL) +option(CLITK_MEMORY_INFO "Enable memory info (need libstatgrab >= v.0.90)" OFF) +mark_as_advanced(CLITK_MEMORY_INFO) option(CLITK_BUILD_TOOLS "Build command-line tools" OFF) option(CLITK_BUILD_SEGMENTATION "Build command-line segmentation tools" OFF) option(CLITK_BUILD_REGISTRATION "Build command-line registration tools" OFF) @@ -29,7 +32,11 @@ if(CLITK_BUILD_VV) if(VTK_VERSION VERSION_LESS 6.0.0) set(vv_QT_VERSION "4" CACHE INTERNAL "Expected Qt version") else() - set(vv_QT_VERSION "5" CACHE INTERNAL "Expected Qt version") + if(VTK_QT_VERSION VERSION_LESS 5) + set(vv_QT_VERSION "4" CACHE INTERNAL "Expected Qt version") + else() + set(vv_QT_VERSION "5" CACHE INTERNAL "Expected Qt version") + endif() endif() add_subdirectory(${CLITK_SOURCE_DIR}/vv ${PROJECT_BINARY_DIR}/vv)