## Some configuration variables
number_of_processes="-j4"
-comp_type=Debug
## Locate cmake executable
cmake_locations=("/usr/bin" "/usr/local/bin" "${HOME}/local/bin")
fi
## Check input parameters and process inputs (if needed)
-if [ "$#" -eq 1 ]; then
+if [ "$#" -eq 2 ]; then
valid_extensions=("zip" "tar" "tar.gz" "tar.bz2")
actual_ext=""
for ext in ${valid_extensions[@]}; do
exit 1
fi
echo "done!"
-elif [ "$#" -eq 2 ]; then
+ build_type=$2
+elif [ "$#" -eq 3 ]; then
source_dir=`dirname $1`
build_dir=`dirname $2`
+ build_type=$3
else
- echo "Usage: [itk_package] or [itk_source_dir itk_build_dir]"
+ echo "Usage: [itk_package] or [itk_source_dir itk_build_dir] [build_type]"
fi
echo "Given source dir : \"$source_dir\""
-DBUILD_EXAMPLES:BOOL=OFF \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DBUILD_TESTING:BOOL=OFF \
- -DCMAKE_BUILD_TYPE:STRING=$comp_type \
+ -DCMAKE_BUILD_TYPE:STRING=$build_type \
-DModule_ITKReview:BOOL=ON \
-DModule_ITKVtkGlue:BOOL=OFF \
-DCMAKE_INSTALL_PREFIX:PATH=${HOME}/local \
## Some configuration variables
number_of_processes="-j4"
-comp_type=-debug
platform=`uname`
particular_options=""
if [ "$platform" == "Darwin" ]; then
fi
## Check input parameters and process inputs (if needed)
-if [ "$#" -eq 1 ]; then
+if [ "$#" -eq 2 ]; then
valid_extensions=("zip" "tar" "tar.gz" "tar.bz2")
actual_ext=""
for ext in ${valid_extensions[@]}; do
exit 1
fi
echo "done!"
-elif [ "$#" -eq 2 ]; then
+ build_type=$2
+elif [ "$#" -eq 3 ]; then
source_dir=`dirname $1`
build_dir=`dirname $2`
+ build_type=$3
else
- echo "Usage: [qt4_package] or [qt4_source_dir qt4_build_dir]"
+ echo "Usage: [qt4_package] or [qt4_source_dir qt4_build_dir] [build_type]"
fi
echo "Given source dir : \"$source_dir\""
cd $build_dir
$source_dir/configure \
-prefix ${HOME}/local \
- $comp_type \
+ $build_type \
-opensource -shared -fast \
-no-phonon \
-no-phonon-backend \
## Some configuration variables
number_of_processes="-j4"
-comp_type=Debug
## Locate cmake executable
cmake_locations=("/usr/bin" "/usr/local/bin" "${HOME}/local/bin")
fi
## Check input parameters and process inputs (if needed)
-if [ "$#" -eq 1 ]; then
+if [ "$#" -eq 2 ]; then
valid_extensions=("zip" "tar" "tar.gz" "tar.bz2")
actual_ext=""
for ext in ${valid_extensions[@]}; do
exit 1
fi
echo "done!"
-elif [ "$#" -eq 2 ]; then
+ build_type=$2
+elif [ "$#" -eq 3 ]; then
source_dir=`dirname $1`
build_dir=`dirname $2`
+ build_type=$3
else
- echo "Usage: [vtk_package] or [vtk_source_dir vtk_build_dir]"
+ echo "Usage: [vtk_package] or [vtk_source_dir vtk_build_dir] [build_type]"
fi
echo "Given source dir : \"$source_dir\""
-DBUILD_SHARED_LIBS:BOOL=ON \
-DBUILD_TESTING:BOOL=OFF \
-DQT_QMAKE_EXECUTABLE:PATH=$qmake_exec \
- -DCMAKE_BUILD_TYPE:STRING=$comp_type \
+ -DCMAKE_BUILD_TYPE:STRING=$build_type \
-DModule_vtkGUISupportQt:BOOL=ON \
-DModule_vtkGUISupportQtOpenGL:BOOL=ON \
-DModule_vtkGUISupportQtSQL:BOOL=OFF \