From 7875890ce0a84087c9a77b17a95cf2844e1f1a40 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Fri, 3 Sep 2010 17:42:00 +0000 Subject: [PATCH] allow user to choose generation directory --- ctest/dashboard/cmakemod.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/ctest/dashboard/cmakemod.sh b/ctest/dashboard/cmakemod.sh index 54dd34e..77077d4 100644 --- a/ctest/dashboard/cmakemod.sh +++ b/ctest/dashboard/cmakemod.sh @@ -1,9 +1,20 @@ -currentdir=`pwd` -dirInstall=$currentdir/tmpCreaTools_INSTALL/$1 +currentdir=$3 + +dirInstall=$3/tmpCreaTools_INSTALL/$1 + +echo dirInstall +echo $dirInstall + +# needed later mkdir $2 + cd $2 -cmake -G"Unix Makefiles" -H$currentdir/$1 -B$currentdir/$2 + +cmake -G"Unix Makefiles" -H$currentdir/$1 -B$2 + cmake -D INCLUDE_CTEST:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=$dirInstall CMakeCache.txt -cd .. +#echo "only for misinstalled vtk" +#cmake -D INCLUDE_CTEST:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=$dirInstall -D VTK_DIR:PATH=/usr/local/lib/vtk-5.4 CMakeCache.txt +cd .. -- 2.47.1