%cmakeBin% -D --BUILD_ALL:BOOL=ON -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
%cmakeBin% -D BUILD_BBTK_DOC:BOOL=%3 -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
-%cmakeBin% -D CMAKE_CXX_FLAGS:STRING="-fpermissive" CMakeCache.txt
+%cmakeBin% -D CMAKE_CXX_FLAGS:STRING="-fpermissive -std=c++11" CMakeCache.txt
%cmakeBin% CMakeCache.txt
exit /B
port -N install texlive -y
port -N install latex2html -y
port -N install wxWidgets-3.0 -y
- port -N install wxgtk-3.0 -y
port -N install boost -y
# ln -s libboost_signals-xgcc40-mt-1_38.dylib libboost_signals.dylib /opt/local/lib # cf EED : http://www.creatis.insa-lyon.fr/site
# ln -s libboost_signals-xgcc40-mt-1_38.dylib libboost_signals.dylib /opt/local/lib # cf EED
binfolder=$2/creatools_bin/$1Bin
cd $binfolder
+ if [ $OperatingSystem = "MacOS" ]
+ then
+ cmake -D CMAKE_CXX_COMPILER:FILE=/usr/bin/g++
+
+## /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
+
+ fi
cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC -D CMAKE_CXX_FLAGS:STRING=-fopenmp CMakeCache.txt
cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt
binfolder=$2/creatools_bin/$1Bin
cd $binfolder
-cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt
+IF(APPLE)
+ set(cxxFlags -fPI -ObjC++C)
+ELSE(APPLE)
+ set(cxxFlags -fPI)
+ENDIF(APPPLE)
+
+cmake -D CMAKE_CXX_FLAGS:STRING=${cxxFlags} -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt
cmake CMakeCache.txt
cmake CMakeCache.txt