+cmake_opt = choose_config( cmake_paths, "CMake" )
+cmake_src = None
+if cmake_opt == len( cmake_paths ):
+ cmake_exec = get_filepath( "Choose your own CMake installation: " )
+ while not os.path.isfile( cmake_exec ):
+ cmake_exec = get_filepath( "Choose your own CMake installation: " )
+ # elihw
+elif cmake_opt == len( cmake_paths ) + 1:
+ cmake_src = get_filepath( "Choose your own CMake source file: " )
+ while not os.path.isfile( cmake_src ):
+ cmake_src = get_filepath( "Choose your own CMake source file: " )
+ # elihw
+else:
+ cmake_exec = cmake_paths[ cmake_opt ]
+# fi
+
+## -----------------------
+## -- ITK and VTK files --
+## -----------------------
+
+itk_src = get_filepath( "Choose your own ITK source file: " )
+while not os.path.isfile( itk_src ):
+ itk_src = get_filepath( "Choose your own ITK source file: " )
+# elihw
+itk_extra = raw_input( "Type an extra configurations for ITK:" )
+
+vtk_src = get_filepath( "Choose your own VTK source file: " )
+while not os.path.isfile( vtk_src ):
+ vtk_src = get_filepath( "Choose your own VTK source file: " )
+# elihw
+vtk_extra = raw_input( "Type an extra configurations for VTK:" )
+
+## ------------------------
+## -- More configuration --
+## ------------------------
+
+install_prefix = get_filepath( "Choose your installation prefix: " )
+build_type = raw_input( "Type your build type [(r)elease/(d)ebug]: " )
+build_type.lower( )
+qmake_full = "n"
+if qmake_src <> None:
+ qmake_full = raw_input( "Would you like a full Qt4 install [y/n]? " )
+ qmake_full.lower( )
+# fi
+qmake_build_type = "release"
+kitware_build_type = "MinSizeRel"
+if build_type[ 0 ] == "d":
+ qmake_build_type = "debug"
+ kitware_build_type = "Debug"