]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/cmakemod.sh
New (new) way to install, all-in-one
[creaToolsTools.git] / Linux / scripts / cmakemod.sh
diff --git a/Linux/scripts/cmakemod.sh b/Linux/scripts/cmakemod.sh
new file mode 100644 (file)
index 0000000..88aa35d
--- /dev/null
@@ -0,0 +1,52 @@
+#!/bin/sh
+
+currentdir=$2
+installPrefix=$3
+dirInstall=$currentdir/creatools_bin/$1Bin
+buildType=$4
+
+echo " "
+echo " "
+echo " "
+echo " "
+echo " ========================================================================== $1 ======================================================== "
+echo " "
+echo " "
+echo " "
+echo " "
+echo " ======="
+echo $1
+echo $2
+echo $3
+echo $4
+echo " ======="
+if [ $buildType = "Debug" ]
+then
+debug="ON"
+else
+debug="OFF"
+fi
+
+echo dirInstall
+echo $dirInstall
+
+mkdir $dirInstall
+cd $dirInstall
+echo -H$currentdir/creatools_source/$1
+echo -B$dirInstall/
+
+## cmake -G"Unix Makefiles" -H$currentdir/creatools_source/$1 -B$dirInstall/
+cmake -G"CodeBlocks - Unix Makefiles" -H$currentdir/creatools_source/$1 -B$dirInstall/
+
+cmake -D BUILD_ALL:BOOL=ON -D INCLUDE_CTEST:BOOL=ON -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
+
+# the following line is the right one!
+#cmake -D INCLUDE_CTEST:BOOL=ON CMakeCache.txt
+
+# This one : only for misinstalled vtk:
+# modify VTK_DIR:PATH=, acording to your own computer
+
+##cmake -D INCLUDE_CTEST:BOOL=ON -D BBTK_USE_WXWIDGETS:BOOL=ON -D VTK_DIR:PATH=$VTKdir -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
+cd ..
+
+