baseDir="$(pwd)"
cd scripts
source config.sh
-# source cloneGit.sh
+
+#source cloneGit.sh
mkdir $creatoolsBin
-source compile_crea.sh
+#source compile_crea.sh
+source compile_bbtk.sh
cd $baseDir
--- /dev/null
+
+module=bbtk
+moduleBin=bbtkBin
+
+cd $creatoolsBin
+rm -rf $moduleBin
+mkdir $moduleBin
+cd $moduleBin
+$cmakeVar $creatoolsSource/$module
+$cmakeVar -D --BUILD_ALL:BOOL=ON -D crea_DIR:PATH=$creatoolsInstall CMakeCache.txt
+$cmakeVar -D BUILD_BBTK_DOC:BOOL=FALSE -D BUILD_BBTK_DOC_GUIDES_HTML:BOOL=FALSE -D BUILD_BBTK_DOC_GUIDES_PDF:BOOL=FALSE -D BUILD_BBTK_DOC_DOXYGEN:BOOL=FALSE -D BUILD_BBTK_DOC_PACKAGE:BOOL=FALSE CMakeCache.txt
+$cmakeVar -D CMAKE_INSTALL_PREFIX:PATH=$creatoolsInstall -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON
+
+$cmakeVar CMakeCache.txt
+make -j$corenumber
+cd $baseDir/scripts
+
cd $moduleBin
$cmakeVar $creatoolsSource/$module
$cmakeVar -D CREA_BUILD_VTK:BOOL=ON -D CREA_USE_MXE:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt
-$cmakeVar -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON CMakeCache.txt
+$cmakeVar -D CMAKE_INSTALL_PREFIX:PATH=$creatoolsInstall -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON CMakeCache.txt
$cmakeVar CMakeCache.txt
make -j$corenumber
+make install
cd $baseDir/scripts
creatoolsBase=/tmpEED/creaTools-mxe
+
+###########################################
+function getncore {
+ if [ `uname` == Darwin ] ; then # MacOS
+ system_profiler | grep Processor | awk '$1=="Number" {print $4}'
+ else
+ cat /proc/cpuinfo | grep processor | wc -l
+ fi
+}
+
+
+
+
+
creatoolsSource=$creatoolsBase/cs
creatoolsInstall=$creatoolsBase/ci
creatoolsBin=$creatoolsBase/cb