]> Creatis software - creaToolsTools.git/commitdiff
allow user to choose generation directory
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 3 Sep 2010 17:42:00 +0000 (17:42 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 3 Sep 2010 17:42:00 +0000 (17:42 +0000)
ctest/dashboard/cmakemod.sh

index 54dd34ed067b6bfc5fbc502f4a27847ad122b3da..77077d4bcea3b94582da87b570a35d6bb395285f 100644 (file)
@@ -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 ..