binfolder=$2/creatools_bin/$1Bin
cd $binfolder
+cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC CMakeCache.txt
cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
cmake -D BBTK_DIR:PATH=$2/creatools_bin/bbtkBin CMakeCache.txt
cmake -D creaMaracasVisu_DIR:PATH=$2/creatools_bin/creaMaracasVisuBin CMakeCache.txt
boolgdcm1=ON
fi
-cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
+cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
cmake -D --BUILD_ALL:BOOL=ON CMakeCache.txt
echo =============================================================================================
echo cmake -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 -D BUILD_BBTK_DOC_GUIDES_HTML:BOOL=$3 -D BUILD_BBTK_DOC_GUIDES_PDF:BOOL=$3 -D BUILD_BBTK_DOC_DOXYGEN:BOOL=$3 -D BUILD_BBTK_DOC_PACKAGE:BOOL=$3 CMakeCache.txt
fi
#cmake -D BUILD_ALL:BOOL=OFF CMakeCache.txt
-cmake -D BUILD_creaBruker_DOC:BOOL=$3 -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 CMakeCache.txt
+cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC -D BUILD_creaBruker_DOC:BOOL=$3 -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 CMakeCache.txt
cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
cmake -D BUILD_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
binfolder=$2/creatools_bin/$1Bin
cd $binfolder
-cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
-cmake -D BBTK_DIR:PATH=$2/creatools_bin/bbtkBin CMakeCache.txt
-cmake -D BBTK_DIR:PATH=$2/creatools_bin/bbtkBin CMakeCache.txt
+cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC CMakeCache.txt
+cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
+cmake -D BBTK_DIR:PATH=$2/creatools_bin/bbtkBin CMakeCache.txt
+cmake -D BBTK_DIR:PATH=$2/creatools_bin/bbtkBin CMakeCache.txt
cmake -D creaEnvironment_DIR:PATH=$2/creatools_bin/creaEnvironmentBin CMakeCache.txt
cmake -D creaMaracasVisu_DIR:PATH=$2/creatools_bin/creaMaracasVisuBin CMakeCache.txt
-cmake -D creaImageIO_DIR:PATH=$2/creatools_bin/creaImageIOBin CMakeCache.txt
-cmake -D BUILD_BBTK_PACKAGE_creaContours:BOOL=ON CMakeCache.txt
-cmake -D creaContours_DOC:BOOL=$3 CMakeCache.txt
-cmake -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
+cmake -D creaImageIO_DIR:PATH=$2/creatools_bin/creaImageIOBin CMakeCache.txt
+cmake -D BUILD_BBTK_PACKAGE_creaContours:BOOL=ON CMakeCache.txt
+cmake -D creaContours_DOC:BOOL=$3 CMakeCache.txt
+cmake -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
cmake CMakeCache.txt
boolgdcm1=ON
fi
-cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt
-cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt
-cmake -D creaBruker_DIR:PATH=$currentdir/creatools_bin/creaBrukerBin CMakeCache.txt
-cmake -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON CMakeCache.txt
+
+cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC CMakeCache.txt
+cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt
+cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt
+cmake -D creaBruker_DIR:PATH=$currentdir/creatools_bin/creaBrukerBin CMakeCache.txt
+cmake -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON CMakeCache.txt
cmake -D BUILD_creaImageIO_DOC:BOOL=$3 -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 CMakeCache.txt
cmake -D BUILD_BBTK_PACKAGE_creaImageIO_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
binfolder=$2/creatools_bin/$1Bin
cd $binfolder
+
+cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC CMakeCache.txt
cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt
cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt
cmake -D BUILD_BBTK_PACKAGE_creaMaracasVisu:BOOL=ON CMakeCache.txt
binfolder=$2/creatools_bin/$1Bin
cd $binfolder
+cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC CMakeCache.txt
cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt
cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt
cmake -D BUILD_BBTK_PACKAGE_creaMiniTools:BOOL=ON CMakeCache.txt
binfolder=$2/creatools_bin/$1Bin
cd $binfolder
-
-cmake -D crea_DIR:PATH=$currentdir$2 -D BUILD_BBTK_PACKAGE_PackRecalage:BOOL=ON -D BUILD_creaRigidRegistration_DOC:BOOL=$3 -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
+cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC -D crea_DIR:PATH=$currentdir$2 -D BUILD_BBTK_PACKAGE_PackRecalage:BOOL=ON -D BUILD_creaRigidRegistration_DOC:BOOL=$3 -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
cmake CMakeCache.txt
cmake CMakeCache.txt
binfolder=$2/creatools_bin/$1Bin
cd $binfolder
-cmake -D CREATOOLS_SOURCE_PATH:PATH=$currentdir/creatools_bin/ CMakeCache.txt
+cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC -D CREATOOLS_SOURCE_PATH:PATH=$currentdir/creatools_bin/ CMakeCache.txt
cmake CMakeCache.txt
binfolder=$2/creatools_bin/$1Bin
cd $binfolder
-cmake -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt
+cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt
cmake CMakeCache.txt
cmake CMakeCache.txt
binfolder=$2/creatools_bin/$1Bin
cd $binfolder
-cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt
-cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt
+cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC CMakeCache.txt
+cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt
+cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt
cmake -D BUILD_BBTK_PACKAGE_creaVtk:BOOL=ON CMakeCache.txt
cmake -D creaVtk_DOC:BOOL=$3 CMakeCache.txt
cmake -D BUILD_BBTK_PACKAGE_creaVtk_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
binfolder=$2/creatools_bin/$1Bin
cd $binfolder
-cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
+cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
cmake CMakeCache.txt