X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=cmake%2Fbuild_opt.cmake;h=2331750a80c279520f69d917f6820cffe4d11911;hb=2dd75b606c94bff1090e46e625e74f7921a1fd33;hp=4a2ca009a14689b04d37c7512d3c7e9b9ba13bbb;hpb=d4377ec80fd4e6f0156bb0673bb661acbf5b8cec;p=clitk.git diff --git a/cmake/build_opt.cmake b/cmake/build_opt.cmake index 4a2ca00..2331750 100644 --- a/cmake/build_opt.cmake +++ b/cmake/build_opt.cmake @@ -19,12 +19,24 @@ endif(BUILD_DOXYGEN) # Compilation options option(CLITK_EXPERIMENTAL "Enable experimental software and features" OFF) +mark_as_advanced(CLITK_EXPERIMENTAL) 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) option(CLITK_BUILD_VV "Build vv the 4D visualizer (requires VTK and QT)" ON) + if(CLITK_BUILD_VV) + if(VTK_VERSION VERSION_LESS 6.0.0) + set(vv_QT_VERSION "4" CACHE INTERNAL "Expected Qt version") + else() + 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) endif(CLITK_BUILD_VV)