fi
#Prepare cmake arguments following the VTK version
-if [ "$VTK_VERSION" == "6.0" ]; then
-vtk_repo_str=" --branch v6.0.0 https://github.com/Kitware/VTK.git --depth 1"
+if [ "$VTK_VERSION" == "5.10" ]; then
+vtk_repo_str=" --branch v5.10.0 https://github.com/Kitware/VTK.git --depth 1"
cmake_arg_str=" $cmake_arg_str
-DBUILD_SHARED_LIBS=1
-DCMAKE_BUILD_TYPE=Release
-DBUILD_TESTING=0
-DBUILD_EXAMPLES=0
-DBUILD_DOCUMENTATION=0
- -DVTK_Group_StandAlone=ON
- -DVTK_Group_Imaging=OFF
- -DVTK_Group_MPI=OFF
- -DVTK_Group_Rendering=ON
- -DVTK_Group_Tk=OFF
- -DVTK_Group_Views=OFF
- -DVTK_Group_Web=OFF
- -DModule_vtkGUISupportQt=ON
- -DModule_vtkGUISupportQtOpenGL=ON
- -DModule_vtkGUISupportQtSQL=ON
- -DModule_vtkRenderingQt=ON
- -DModule_vtkViewsQt=ON
+ -DVTK_USE_QT=ON
+ -DVTK_USE_RENDERING=ON
+ -DVTK_USE_VIEWS=ON
-DVTK_QT_VERSION="$QT_MAJOR_VERSION" "
elif [ "$VTK_VERSION" == "6.3" ]; then
vtk_repo_str=" --branch v6.3.0 https://github.com/Kitware/VTK.git --depth 1"