@echo off
-set creatoolsGeneration=E:\creatis\creaToolsCompilation4
+set creatoolsGeneration=C:\Users\davila\Eduardo\CreatisWork\CreaToolsMinGW\creaToolsCompilation4
set docGeneration=OFF
cd scripts
SET(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_MINOR_VERSION})
SET(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_BUILD_VERSION})
-
-
-
-
-
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools\\\\${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
IF(WIN32)
SET(CMAKE_INSTALL_PREFIX C:/CreaTools/${PROJECT_NAME})
ENDIF(WIN32)
-
-
-
-
IF(WIN32 AND NOT UNIX)
# There is a bug in NSI that does not handle full unix paths properly. Make
# sure there is at least one set of four (4) backlasshes.
SET(CPACK_NSIS_CONTACT "info-dev@creatis.insa-lyon.fr")
SET(CPACK_NSIS_MODIFY_PATH OFF)
-
set (CREA_BOOST_LYBRARY boost)
set (CREA_GDCM_LYBRARY gdcm13 )
set (CREA_ITK_LYBRARY itk )
set (CREA_LIBRARY_SOURCE_PATH "" CACHE PATH ${MessageLibraryPath} )
set (CREA_LIBRARY_DESTINATION_PATH "Library")
set (CREA_BIN_DESTINATION_PATH "bin")
-
IF(NOT CREA_LIBRARY_SOURCE_PATH)
MESSAGE(FATAL_ERROR "${MessageLibraryPath} not found")
ENDIF(NOT CREA_LIBRARY_SOURCE_PATH)
-
-
ELSE(WIN32 AND NOT UNIX)
# SET(CPACK_STRIP_FILES "bin/bbi")
SET(CPACK_SOURCE_STRIP_FILES "")
ENDIF(WIN32 AND NOT UNIX)
#SET(CPACK_PACKAGE_EXECUTABLES "TestWxGimmickDialog" "Gimmick!")
-
-
# Aditional INSTALL for CPACK mecanism.
IF (WIN32)
-
# tth
FILE(GLOB LST_FILE_TTH "${CREA_LIBRARY_SOURCE_PATH}/tth/*.*")
FOREACH( iLST ${LST_FILE_TTH} )
DESTINATION bin/tth/
)
ENDFOREACH(iLST)
-
#DFCH -- INSTALL(DIRECTORY ${CREA_LIBRARY_SOURCE_PATH}\\\\${CREA_MIKATEX_LYBRARY} DESTINATION ${CREA_BIN_DESTINATION_PATH} )
INSTALL(FILES ${${CMAKE_PROJECT_NAME}_BINARY_DIR}/Version.txt DESTINATION . )
INSTALL(DIRECTORY ${CREA_LIBRARY_SOURCE_PATH}\\\\${CREA_BOOST_LYBRARY} DESTINATION ${CREA_LIBRARY_DESTINATION_PATH} )
INSTALL(DIRECTORY ${CREA_LIBRARY_SOURCE_PATH}\\\\${CREA_XERCES_LYBRARY} DESTINATION ${CREA_LIBRARY_DESTINATION_PATH} )
INSTALL(DIRECTORY ${CREA_LIBRARY_SOURCE_PATH}\\\\${CREA_SQLITE_LYBRARY} DESTINATION ${CREA_LIBRARY_DESTINATION_PATH} )
-
#DFCH -- SET(MIKTEX_INSTALL_DIR "$INSTDIR\\\\bin\\\\MiKTeX-2.9\\\\miktex\\\\bin")
#DFCH -- SET(CREATIS_THIRDPARTYLIBRARIES_DIRS ";${MIKTEX_INSTALL_DIR}")
SET(CREATPL_DIRBIN "$INSTDIR")
SendMessage \\\${HWND_BROADCAST} \\\${WM_WININICHANGE} 0 'STR:Environment' /TIMEOUT=5000
")
-
-
+
SET(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
WriteRegExpandStr \\\${Uninstall_EnvStr_RegKey} 'CREATIS_THIRDPARTYLIBRARIES_DIRS' ''
SendMessage \\\${HWND_BROADCAST} \\\${WM_WININICHANGE} 0 'STR:Environment' /TIMEOUT=5000
")
-
- INCLUDE(CPack)
-
-
+ INCLUDE(CPack)
ENDIF (WIN32)
#EED 19-11-2009
# SET(CREATIS_ENVIRONMENT_DIRS ";${CREA_DLLS_DIR};${MIKTEX_INSTALL_DIR}")
- SET(CREATIS_THIRDPARTYDLLS_DIRS ";${CREA_DLLS_DIR}")
+ SET(CREATIS_THIRDPARTYDLLS_DIRS "${CREA_DLLS_DIR}")
SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
--- /dev/null
+@echo off
+
+
+set baseProject=C:\Eduardo\Creatis
+set ProgramFiles=C:\Program Files
+
+;::set baseProject=C:\Users\davila\Creatools
+::set ProgramFiles=C:\Program Files
+
+::set baseProject=E:\creatis\c_mingw
+::set ProgramFiles=C:\Program Files (x86)
+
+set docGeneration=OFF
+set cmakeBin=%baseProject%\DevelopperTools\cmake-3.17.1-win64-x64\bin\cmake.exe
+set creatoolsGeneration=%baseProject%\C11\ct
+set bash=%ProgramFiles%\Git\bin\bash.exe
+:: Some times you have to put this is comments
+:: If not in comments you need to activate de ppk key with the putty-agent
+:: set GIT_SSH=%ProgramFiles%\PuTTY\plink.exe
+
+cd scripts
+call All.bat %creatoolsGeneration% %docGeneration%
+cd ..
+pause
+exit
+
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+set creatoolsGeneration=<directory where you want to generate>
+set docGeneration=<OFF|ON> let it to OFF!
+
+cd scripts
+call All.bat %creatoolsGeneration% %docGeneration%
+cd ..
+pause
+exit
+
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+set creatoolsGeneration=%1
+set docGeneration=%2
+
+set scriptsFolder=%cd%
+
+
+rmdir %logFolder% /s /q
+mkdir %logFolder%
+mkdir %creatoolsGeneration%
+
+echo call configure variables
+call %scriptsFolder%\base\configureVariables.bat
+
+echo call Clean and Download-Sources
+start /B /wait %scriptsFolder%\base\downloadSources.bat
+
+
+echo %cd%
+
+cd %scriptsFolder%
+call All2.bat %creatoolsGeneration% %docGeneration% Release Win64
+
+::cd %scriptsFolder%
+::call All2.bat %creatoolsGeneration% %docGeneration% Release Win32
+
+::cd %scriptsFolder%
+::call All2.bat %creatoolsGeneration% %docGeneration% Debug Win64
+
+::cd %scriptsFolder%
+::call All2.bat %creatoolsGeneration% %docGeneration% Debug Win32
+
+copy /Y Tool-scpCreaToolsToTux.bat ..\..\..\..\.
+
+echo ..End..
+
+cd %scriptsFolder%
+
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+REM @echo off
+
+set creatoolsGeneration=%1
+set docgeneration=%2
+set buildtype=%3
+set platforme=%4
+
+set logFolder=%creatoolsGeneration%\c_%buildtype%%platforme%\log
+set installPrefix=%creatoolsGeneration%\c_%buildtype%%platforme%\ci
+
+echo --Change ThirdParty directories (CSI/act)--
+set homedir=%cd%
+::cd E:\creatis\CSI
+::call act\rename_dir.bat
+::rename act_%buildtype%-%platforme% act
+
+cd %creatoolsGeneration%
+
+mkdir c_%buildtype%%platforme%
+mkdir c_%buildtype%%platforme%\log
+
+echo call configure variables
+call %scriptsFolder%\base\configureVariables.bat
+
+REM goto skypToEED
+REM :skypToEED
+
+echo call compile crea
+start /B /wait %scriptsFolder%\creaInstall.bat
+echo call compile bbtk
+start /B /wait %scriptsFolder%\bbtkInstall.bat
+echo call compile creaMaracasVisu
+start /B /wait %scriptsFolder%\creaMaracasVisuInstall.bat
+echo call compile creaVtk
+start /B /wait %scriptsFolder%\creaVtkInstall.bat
+echo call compile creaEnvironment
+start /B /wait %scriptsFolder%\creaEnvironmentInstall.bat
+echo call compile creaBruker
+start /B /wait %scriptsFolder%\creaBrukerInstall.bat
+echo call compile creaImageIO
+start /B /wait %scriptsFolder%\creaImageIOInstall.bat
+echo call compile creaContours
+start /B /wait %scriptsFolder%\creaContoursInstall.bat
+echo call compile creaRigidRegistration
+start /B /wait %scriptsFolder%\creaRigidRInstall.bat
+echo call compile bbtkGEditor
+start /B /wait %scriptsFolder%\bbtkGEditorInstall.bat
+echo call compile creaMinitools
+start /B /wait %scriptsFolder%\creaMinitoolsInstall.bat
+
+
+echo THIS HAS TO BE THE LAST STEP...
+echo call compile creaTools
+start /B /wait %scriptsFolder%\creaToolsInstall.bat
+echo To see the log files of this install please go to %LogFolder%
+
--- /dev/null
+"C:\Program Files (x86)\PuTTY\pscp.exe" CreaTools-Release-4.0.0-win64.exe davila@tux.creatis.insa-lyon.fr:/var/www/html/software/public/creatools/creaTools/v4.x.x/
+
+pause
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+echo ----------------------------
+echo ----cleangeneral.bat--------
+echo ----------------------------
+
+echo creatoolsGeneration = %1
+
+rmdir %1\cs /s /q
+rmdir %1\c_DebugWin32 /s /q
+rmdir %1\c_DebugWin64 /s /q
+rmdir %1\c_ReleaseWin32 /s /q
+rmdir %1\c_ReleaseWin64 /s /q
+
+exit /B
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+echo ----------------------------
+echo -------cleanmod.bat---------
+echo ----------------------------
+
+echo creasourcefolder = %1
+echo creatoolsGeneration = %2
+
+
+set binfolder=%2\c_%buildtype%%platforme%\cb\%1Bin
+mkdir %binfolder%
+cd %binfolder%
+del CMakeCache.txt
+del *.exe
+del *.dll
+del Debug\*.exe
+del Debug\*.dll
+del Release\*.exe
+del Release\*.dll
+del RelWithDebInfo\*.exe
+del RelWithDebInfo\*.dll
+
+exit /B
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo -------cmakemod.bat---------
+echo ----------------------------
+
+echo creasource = %1
+echo installPrefix = %2
+echo creatoolsGeneration = %3
+
+echo Architecture found = %PROCESSOR_ARCHITECTURE%
+
+::if %PROCESSOR_ARCHITECTURE%==x86 (
+:: set ProgramFilesPath_x86=%ProgramFiles%
+:: set "compilerVersion=Visual Studio 10"
+::) else (
+:: set "ProgramFilesPath_x64=%ProgramFiles%"
+:: set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
+:: set "compilerVersion=Visual Studio 10 Win64"
+::)
+::set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
+::if not exist %vcvarsall% set vcvarsall="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
+::if not exist %vcvarsall% (
+:: echo ERROR!!! Visual Studio has not been found in the system
+:: exit
+::)
+
+::if %platforme%==Win32 (
+:: call %vcvarsall%
+:: set "compilerVersion=Visual Studio 10"
+:: echo "Compilation forced x86"
+::) else (
+:: if %PROCESSOR_ARCHITECTURE%==x86 (
+:: call %vcvarsall%
+:: ) else (
+:: call %vcvarsall% amd64
+:: )
+::)
+
+set binfolder=%3\creatools_%buildtype%%platforme%\cb\%1Bin
+cd %binfolder%
+
+::echo cmake -G"%compilerVersion%" -H%3\cs\%1 -B%3\c_%buildtype%%platforme%\cb\%1Bin
+::echo cmake -D INCLUDE_CTEST:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=%2\%1 CMakeCache.txt
+::%cmakeBin% -G"MinGW Makefiles" -H%3\cs\%1 -B%3\c_%buildtype%%platforme%\cb\%1Bin
+::%cmakeBin% -D CMAKE_BUILD_TYPE:STRING=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%2\%1 CMakeCache.txt
+
+echo cmake -G"%compilerVersion%" -H%3\cs\%1 -B%3\c_%buildtype%%platforme%\cb\%1Bin
+echo cmake -D INCLUDE_CTEST:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=%2\%1 CMakeCache.txt
+%cmakeBin% -G"MinGW Makefiles" -H%3\cs\%1 -B%3\c_%buildtype%%platforme%\cb\%1Bin
+%cmakeBin% -D CMAKE_BUILD_TYPE:STRING=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%2 CMakeCache.txt
+
+
+exit /B
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo -------compilemod.bat-------
+echo ----------------------------
+
+echo buildtype = %1
+echo Module Sources = %2
+echo creatoolsGeneration = %3
+
+echo Architecture found = %PROCESSOR_ARCHITECTURE%
+::if %PROCESSOR_ARCHITECTURE%==x86 (
+:: set ProgramFilesPath_x86=%ProgramFiles%
+: set "compilerVersion=Visual Studio 10"
+::) else (
+:: set "ProgramFilesPath_x64=%ProgramFiles%"
+:: set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
+:: set "compilerVersion=Visual Studio 10 Win64"
+::)
+::set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
+::if not exist %vcvarsall% set vcvarsall="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
+::if not exist %vcvarsall% (
+:: echo ERROR!!! Visual Studio has not been found in the system
+:: exit
+::)
+
+::if %platforme%==Win32 (
+:: call %vcvarsall%
+:: set "compilerVersion=Visual Studio 10"
+:: echo "Compilation forced x86"
+::) else (
+:: if %PROCESSOR_ARCHITECTURE%==x86 (
+:: call %vcvarsall%
+:: ) else (
+:: call %vcvarsall% amd64
+:: )
+::)
+
+set binfolder=%3\c_%buildtype%%platforme%\cb\%2Bin
+cd %binfolder%
+REM FOR /R %%a IN (*.sln) DO msbuild %%a /p:UseEnv=true;BuildInParallel=true;Configuration=%1
+REM msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%1 ALL_BUILD.vcxproj
+
+::msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%1 INSTALL.vcxproj
+::msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%1 PACKAGE.vcxproj
+
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS%
+mingw32-make.exe install
+
+::copy %2*.exe %3\c_%buildtype%%platforme%\ri\
+
+
+exit /B
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+echo setting variables
+
+set creasource=crea
+set bbtksource=bbtk
+set creamaracassource=creaMaracasVisu
+set creavtksource=creaVtk
+set creaenvironmentsource=creaEnvironment
+set creabrukersource=creaBruker
+set creaimagesource=creaImageIO
+set creacontourssource=creaContours
+set crearigidregistrationssource=creaRigidRegistration
+set bbtkgeditorsource=bbtkGEditor
+set creatoolssource=creaTools
+set creaminitoolssource=creaMiniTools
+
+set baseFolder=%scriptsFolder%\base
+set creadll=%creatoolsGeneration%\c_%buildtype%%platforme%\cb\%creasource%Bin\%buildtype%
+set PATH=%creadll%;%PATH%
+set bbtkdll=%creatoolsGeneration%\c_%buildtype%%platforme%\cb\%bbtksource%Bin\%buildtype%
+set PATH=%bbtkdll%;%PATH%
+set creamaracasdll=%creatoolsGeneration%\c_%buildtype%%platforme%\cb\%creamaracassource%Bin\%buildtype%
+set PATH=%creamaracasdll%;%PATH%
+set creavtkdll=%creatoolsGeneration%\c_%buildtype%%platforme%\cb\%creavtkssource%Bin\%buildtype%
+set PATH=%creavtkdll%;%PATH%
+set creaenvironmentdll=%creatoolsGeneration%\c_%buildtype%%platforme%\cb\%creaenvironmentsource%Bin\%buildtype%
+set PATH=%creaenvironmentdll%;%PATH%
+set creabrukerdll=%creatoolsGeneration%\c_%buildtype%%platforme%\cb\%creabrukersource%Bin\%buildtype%
+set PATH=%creabrukerdll%;%PATH%
+set creaimagedll=%creatoolsGeneration%\c_%buildtype%%platforme%\cb\%creaimagesource%Bin\%buildtype%
+set PATH=%creaimagedll%;%PATH%
+set creacontourdll=%creatoolsGeneration%\c_%buildtype%%platforme%\cb\%creacontourssource%Bin\%buildtype%
+set PATH=%creacontoursdll%;%PATH%
+set crearigidregistrationdll=%creatoolsGeneration%\c_%buildtype%%platforme%\cb\%crearigidregistrationssource%Bin\%buildtype%
+set PATH=%crearigidregistrationdll%;%PATH%
+set bbtkgeditordll=%creatoolsGeneration%\c_%buildtype%%platforme%\cb\%bbtkgeditorsource%Bin\%buildtype%
+set PATH=%bbtkgeditordll%;%PATH%
+set creaminitoolsdll=%creatoolsGeneration%\c_%buildtype%%platforme%\cb\%creaminitoolssource%Bin\%buildtype%
+set PATH=%creaminitoolsdll%;%PATH%
+set creatoolsdll=%creatoolsGeneration%\c_%buildtype%%platforme%\cb\%creatoolssource%Bin\%buildtype%
+set PATH=%creatoolssdll%;%PATH%
+
+echo End setting variables
+
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+echo cleaning prefix
+call %baseFolder%\cleangeneral.bat %creatoolsGeneration% %installPrefix%
+
+echo downloading creatools software
+
+::goto SkipEED1
+:SkipEED1
+
+
+echo echo tmp.sh > tmp.sh
+set creatoolsGeneration2=%creatoolsGeneration:\=/%
+echo mkdir %creatoolsGeneration2% >> tmp.sh
+echo mkdir %creatoolsGeneration2%/cs >> tmp.sh
+echo cd %creatoolsGeneration2%/cs >> tmp.sh
+
+
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creasource% >> tmp.sh
+echo cd %creasource% >> tmp.sh
+echo git checkout vtk8itk5wx3-mingw64 >> tmp.sh
+echo cd .. >> tmp.sh
+
+
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%bbtksource% >> tmp.sh
+echo cd %bbtksource% >> tmp.sh
+echo git checkout vtk8itk5wx3-mingw64 >> tmp.sh
+echo cd .. >> tmp.sh
+
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creamaracassource% >> tmp.sh
+echo cd %creamaracassource% >> tmp.sh
+echo git checkout vtk8itk5wx3-mingw64 >> tmp.sh
+echo cd .. >> tmp.sh
+
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creavtksource% >> tmp.sh
+echo cd %creavtksource% >> tmp.sh
+echo git checkout vtk8itk5wx3-mingw64 >> tmp.sh
+echo cd .. >> tmp.sh
+
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creaenvironmentsource% >> tmp.sh
+echo cd %creaenvironmentsource% >> tmp.sh
+echo git checkout vtk8itk5wx3-mingw64 >> tmp.sh
+echo cd .. >> tmp.sh
+
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creabrukersource% >> tmp.sh
+echo cd %creabrukersource% >> tmp.sh
+echo git checkout vtk8itk5wx3-mingw64 >> tmp.sh
+echo cd .. >> tmp.sh
+
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creaimagesource% >> tmp.sh
+echo cd %creaimagesource% >> tmp.sh
+echo git checkout vtk8itk5wx3-mingw64 >> tmp.sh
+echo cd .. >> tmp.sh
+
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creacontourssource% >> tmp.sh
+echo cd %creacontourssource% >> tmp.sh
+echo git checkout vtk8itk5wx3-mingw64 >> tmp.sh
+echo cd .. >> tmp.sh
+
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%crearigidregistrationssource% >> tmp.sh
+echo cd %crearigidregistrationssource% >> tmp.sh
+echo git checkout vtk8itk5wx3-mingw64 >> tmp.sh
+echo cd .. >> tmp.sh
+
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%bbtkgeditorsource% >> tmp.sh
+echo cd %bbtkgeditorsource% >> tmp.sh
+echo git checkout vtk8itk5wx3-mingw64 >> tmp.sh
+echo cd .. >> tmp.sh
+
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creaminitoolssource% >> tmp.sh
+echo cd %creaminitoolssource% >> tmp.sh
+echo git checkout vtk8itk5wx3-mingw64 >> tmp.sh
+echo cd .. >> tmp.sh
+
+
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creatoolssource% >> tmp.sh
+echo cd %creatoolssource% >> tmp.sh
+echo git checkout vtk8itk5wx3-mingw64 >> tmp.sh
+echo cd .. >> tmp.sh
+
+
+
+echo call gitcall.bat "%cd%\tmp.sh"
+call gitcall.bat "%cd%\tmp.sh"
+
+echo
+echo
+echo end of downloading creatools software
+
+exit
+
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+echo ----------------------------
+echo -----gitclone.bat-----------
+echo ----------------------------
+
+echo creasourcefolder = %1
+REM echo cvsUser = %2
+echo creatoolsGeneration = %2
+
+mkdir %2\creatools_sources
+cd %2\creatools_sources
+REM ::cvs -d :ssh:%2@cvs.creatis.insa-lyon.fr:/cvs/creatis checkout %1
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/%1
--- /dev/null
+#! /bin/bash
+eval $(ssh-agent -s)
+ssh-add
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+set currentdir=%~dp0
+
+echo compile bbtkGEditor %buildType% %platforme%
+call %baseFolder%\cleanmod.bat %bbtkgeditorsource% %creatoolsGeneration% >> %logFolder%\bbtkGEditorInstall.log 2>&1
+call %baseFolder%\cmakemod.bat %bbtkgeditorsource% %installPrefix% %creatoolsGeneration% >> %logFolder%\bbtkGEditorInstall.log 2>&1
+call %currentdir%\bbtkGEditorVariables.bat %creatoolsGeneration% %bbtkgeditorsource% %docgeneration% %buildtype% >> %logFolder%\bbtkGEditorInstall.log 2>&1
+call %baseFolder%\compilemod.bat %buildtype% %bbtkgeditorsource% %creatoolsGeneration% >> %logFolder%\bbtkGEditorInstall.log 2>&1
+call %baseFolder%\ctestmod.bat %bbtkgeditorsource% %creatoolsGeneration% >> %logFolder%\bbtkGEditorInstall.log 2>&1
+echo end of bbtkGEditor compilation
+
+exit
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo --bbtkGEditorVariables.bat--
+echo ----------------------------
+
+echo creatoolsGeneration = %1
+echo bbtkgeditorsource = %2
+echo docgeneration = %3
+echo buildType = %4
+
+set binfolder=%1\c_%buildtype%%platforme%\cb\%2Bin
+cd %binfolder%
+
+IF %4==Debug (
+ cmake -D WXWIDGETS_USE_DEBUG:BOOL=ON CMakeCache.txt
+)
+
+::cmake -D crea_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\crea CMakeCache.txt
+::cmake -D BBTK_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\bbtk CMakeCache.txt
+::cmake -D creaMaracasVisu_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\creaMaracasVisu CMakeCache.txt
+::cmake -D BUILD_bbtkGEditor_DOC:BOOL=%3 CMakeCache.txt
+::cmake CMakeCache.txt
+
+::%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci\crea CMakeCache.txt
+::%cmakeBin% -D BBTK_DIR:PATH=%1\c_%buildtype%%platforme%\ci\bbtk CMakeCache.txt
+::%cmakeBin% -D creaMaracasVisu_DIR:PATH=%1\c_%buildtype%%platforme%\ci\creaMaracasVisu CMakeCache.txt
+::%cmakeBin% -D BUILD_bbtkGEditor_DOC:BOOL=%3 CMakeCache.txt
+::%cmakeBin% CMakeCache.txt
+
+%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+%cmakeBin% -D BBTK_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+%cmakeBin% -D creaMaracasVisu_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+%cmakeBin% -D BUILD_bbtkGEditor_DOC:BOOL=%3 CMakeCache.txt
+%cmakeBin% CMakeCache.txt
+exit /B
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+set currentdir=%~dp0
+
+echo compile bbtk %buildType% %platforme%
+call %baseFolder%\cleanmod.bat %bbtksource% %creatoolsGeneration% >> %logFolder%\bbtkInstall.log 2>&1
+call %baseFolder%\cmakemod.bat %bbtksource% %installPrefix% %creatoolsGeneration% >> %logFolder%\bbtkInstall.log 2>&1
+call %currentdir%\bbtkVariables.bat %creatoolsGeneration% %bbtksource% %docgeneration% %buildtype% >> %logFolder%\bbtkInstall.log 2>&1
+call %baseFolder%\compilemod.bat %buildtype% %bbtksource% %creatoolsGeneration% >> %logFolder%\bbtkInstall.log 2>&1
+call %baseFolder%\ctestmod.bat %bbtksource% %creatoolsGeneration% >> %logFolder%\bbtkInstall.log 2>&1
+echo end bbtk compilation
+exit
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo -----bbtkVariables.bat------
+echo ----------------------------
+
+echo creatoolsGeneration = %1
+echo bbtksourcefolder = %2
+echo docgeneration = %3
+echo buildType = %4
+
+set binfolder=%1\c_%buildtype%%platforme%\cb\%2Bin
+cd %binfolder%
+
+IF %4==Debug (
+:: cmake -D WXWIDGETS_USE_DEBUG:BOOL=ON CMakeCache.txt
+%cmakeBin% cmake -D WXWIDGETS_USE_DEBUG:BOOL=ON CMakeCache.txt
+)
+
+::cmake -D --BUILD_ALL:BOOL=ON -D crea_DIR:PATH=%1\cr_%buildtype%%platforme%\creatools_install\crea CMakeCache.txt
+::cmake -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
+::cmake CMakeCache.txt
+::cmake CMakeCache.txt
+::cmake CMakeCache.txt
+
+::%cmakeBin% -D --BUILD_ALL:BOOL=ON -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci\crea 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% CMakeCache.txt
+
+%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 -fopenmp" CMakeCache.txt
+%cmakeBin% CMakeCache.txt
+
+exit /B
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+set currentdir=%~dp0
+
+echo compile creaBruker %buildType% %platforme%
+call %baseFolder%\cleanmod.bat %creabrukersource% %creatoolsGeneration% >> %logFolder%\creaBrukerInstall.log 2>&1
+call %baseFolder%\cmakemod.bat %creabrukersource% %installPrefix% %creatoolsGeneration% >> %logFolder%\creaBrukerInstall.log 2>&1
+call %currentdir%\creaBrukerVariables.bat %creatoolsGeneration% %creabrukersource% %docgeneration% %buildtype% >> %logFolder%\creaBrukerInstall.log 2>&1
+call %baseFolder%\compilemod.bat %buildtype% %creabrukersource% %creatoolsGeneration% >> %logFolder%\creaBrukerInstall.log 2>&1
+call %baseFolder%\ctestmod.bat %creabrukersource% %creatoolsGeneration% >> %logFolder%\creaBrukerInstall.log 2>&1
+
+echo endo of creaBruker compilation
+
+exit
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo --creaBrukerVariables.bat---
+echo ----------------------------
+
+echo creatoolsGeneration = %1
+echo creabrukersource = %2
+echo docgeneration = %3
+echo buildType = %4
+
+set binfolder=%1\c_%buildtype%%platforme%\cb\%2Bin
+cd %binfolder%
+
+IF %4==Debug (
+ cmake -D WXWIDGETS_USE_DEBUG:BOOL=ON CMakeCache.txt
+)
+
+::cmake -D --BUILD_ALL:BOOL=OFF -D crea_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\crea -D BUILD_creaBruker_DOC:BOOL=%3 CMakeCache.txt
+
+::%cmakeBin% -D --BUILD_ALL:BOOL=OFF -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci\crea -D BUILD_creaBruker_DOC:BOOL=%3 CMakeCache.txt
+
+%cmakeBin% -D --BUILD_ALL:BOOL=OFF -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci -D BUILD_creaBruker_DOC:BOOL=%3 CMakeCache.txt
+
+exit /B
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+set currentdir=%~dp0
+
+echo compile creaContours %buildType% %platforme%
+call %baseFolder%\cleanmod.bat %creacontourssource% %creatoolsGeneration% >> %logFolder%\creaContoursInstall.log 2>&1
+call %baseFolder%\cmakemod.bat %creacontourssource% %installPrefix% %creatoolsGeneration% >> %logFolder%\creaContoursInstall.log 2>&1
+call %currentdir%\creaContoursVariables.bat %creatoolsGeneration% %creacontourssource% %docgeneration% %buildtype% >> %logFolder%\creaContoursInstall.log 2>&1
+call %baseFolder%\compilemod.bat %buildtype% %creacontourssource% %creatoolsGeneration% >> %logFolder%\creaContoursInstall.log 2>&1
+call %baseFolder%\ctestmod.bat %creacontourssource% %creatoolsGeneration% >> %logFolder%\creaContoursInstall.log 2>&1
+echo end of creaContours compilation
+
+exit
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo --creaContourVariables.bat--
+echo ----------------------------
+
+echo creatoolsGeneration = %1
+echo creacontourssource = %2
+echo docgeneration = %3
+echo buildType = %4
+
+set binfolder=%1\c_%buildtype%%platforme%\cb\%2Bin
+cd %binfolder%
+
+IF %4==Debug (
+ cmake -D WXWIDGETS_USE_DEBUG:BOOL=ON CMakeCache.txt
+)
+
+echo %1=creabrukersource% %2=docgeneration
+
+::cmake -D crea_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\crea -D creaEnvironment_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\creaEnvironment -D creaMaracasVisu_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\creaMaracasVisu -D creaImageIO_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\creaImageIO CMakeCache.txt
+::cmake -D BBTK_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\bbtk CMakeCache.txt
+::cmake -D creaContours_DOC:BOOL=%2 -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=%2 CMakeCache.txt
+::cmake CMakeCache.txt
+
+::%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci\crea -D creaEnvironment_DIR:PATH=%1\c_%buildtype%%platforme%\ci\creaEnvironment -D creaMaracasVisu_DIR:PATH=%1\c_%buildtype%%platforme%\ci\creaMaracasVisu -D creaImageIO_DIR:PATH=%1\c_%buildtype%%platforme%\ci\creaImageIO CMakeCache.txt
+::%cmakeBin% -D BBTK_DIR:PATH=%1\c_%buildtype%%platforme%\ci\bbtk CMakeCache.txt
+::%cmakeBin% -D creaContours_DOC:BOOL=%2 -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=%2 CMakeCache.txt
+::%cmakeBin% CMakeCache.txt
+
+%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci -D creaEnvironment_DIR:PATH=%1\c_%buildtype%%platforme%\ci -D creaMaracasVisu_DIR:PATH=%1\c_%buildtype%%platforme%\ci -D creaImageIO_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+%cmakeBin% -D BBTK_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+%cmakeBin% -D BUILD_BBTK_PACKAGE_creaContours:BOOL=ON -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+%cmakeBin% -D creaContours_DOC:BOOL=%3 -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+%cmakeBin% CMakeCache.txt
+
+
+exit /B
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+set currentdir=%~dp0
+
+echo compile creaEnvironment %buildType% %platforme%
+call %baseFolder%\cleanmod.bat %creaenvironmentsource% %creatoolsGeneration% >> %logFolder%\creaEnvironmentInstall.log 2>&1
+call %baseFolder%\cmakemod.bat %creaenvironmentsource% %installPrefix% %creatoolsGeneration% >> %logFolder%\creaEnvironmentInstall.log 2>&1
+call %currentdir%\creaenvironmentVariables.bat %creatoolsGeneration% %creaenvironmentsource% %docgeneration% %buildtype% >> %logFolder%\creaEnvironmentInstall.log 2>&1
+call %baseFolder%\compilemod.bat %buildtype% %creaenvironmentsource% %creatoolsGeneration% >> %logFolder%\creaEnvironmentInstall.log 2>&1
+call %baseFolder%\ctestmod.bat %creaenvironmentsource% %creatoolsGeneration% >> %logFolder%\creaEnvironmentInstall.log 2>&1
+echo end of creaEnvironment compilation
+
+exit
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+set currentdir=%~dp0
+
+echo compile creaImageIO %buildtype% %platforme%
+call %baseFolder%\cleanmod.bat %creaimagesource% %creatoolsGeneration% >> %logFolder%\creaImageIOInstall.log 2>&1
+call %baseFolder%\cmakemod.bat %creaimagesource% %installPrefix% %creatoolsGeneration% >> %logFolder%\creaImageIOInstall.log 2>&1
+call %currentdir%\creaImageIOVariables.bat %creatoolsGeneration% %creaimagesource% %docgeneration% %buildtype% >> %logFolder%\creaImageIOInstall.log 2>&1
+call %baseFolder%\compilemod.bat %buildtype% %creaimagesource% %creatoolsGeneration% >> %logFolder%\creaImageIOInstall.log 2>&1
+call %baseFolder%\ctestmod.bat %creaimagesource% %creatoolsGeneration% >> %logFolder%\creaImageIOInstall.log 2>&1
+echo end of creaImageIO compilation
+
+exit
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo ----creaIOVariable.bat------
+echo ----------------------------
+
+echo creatoolsGeneration = %1
+echo creaimagesource = %2
+echo docgeneration = %3
+echo buildType = %4
+
+set binfolder=%1\c_%buildtype%%platforme%\cb\%2Bin
+cd %binfolder%
+
+IF %4==Debug (
+ cmake -D WXWIDGETS_USE_DEBUG:BOOL=ON CMakeCache.txt
+)
+
+::cmake -D BBTK_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\bbtk CMakeCache.txt
+::cmake -D crea_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\crea -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON -D creaBruker_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\creaBruker -D USE_GDCM:BOOL=ON CMakeCache.txt
+::cmake -D BUILD_DOXYGEN_DOC:BOOL=%3 -D BUILD_BBTK_PACKAGE_creaImageIO_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+::cmake CMakeCache.txt
+
+::%cmakeBin% -D BBTK_DIR:PATH=%1\c_%buildtype%%platforme%\ci\bbtk CMakeCache.txt
+::%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci\crea -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON -D creaBruker_DIR:PATH=%1\c_%buildtype%%platforme%\ci\creaBruker -D USE_GDCM:BOOL=ON CMakeCache.txt
+::%cmakeBin% -D BUILD_DOXYGEN_DOC:BOOL=%3 -D BUILD_BBTK_PACKAGE_creaImageIO_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+::%cmakeBin% -D CMAKE_CXX_FLAGS:STRING="-fpermissive" CMakeCache.txt
+
+%cmakeBin% -D BBTK_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON -D creaBruker_DIR:PATH=%1\c_%buildtype%%platforme%\ci -D USE_GDCM:BOOL=ON CMakeCache.txt
+%cmakeBin% -D BUILD_DOXYGEN_DOC:BOOL=%3 -D BUILD_BBTK_PACKAGE_creaImageIO_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+%cmakeBin% -D CMAKE_CXX_FLAGS:STRING="-fpermissive" CMakeCache.txt
+
+exit /B
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+REM @echo off
+
+set currentdir=%~dp0
+
+echo Compile crea %buildType% %platforme%
+call %baseFolder%\cleanmod.bat %creasource% %creatoolsGeneration% >> %logFolder%\creaInstall.log 2>&1
+call %baseFolder%\cmakemod.bat %creasource% %installPrefix% %creatoolsGeneration% >> %logFolder%\creaInstall.log 2>&1
+call %currentdir%\creaVariables.bat %creatoolsGeneration% %creasource% %docgeneration% %buildType% >> %logFolder%\creaInstall.log 2>&1
+call %baseFolder%\compilemod.bat %buildtype% %creasource% %creatoolsGeneration% >> %logFolder%\creaInstall.log 2>&1
+call %baseFolder%\ctestmod.bat %creasource% %creatoolsGeneration% >> %logFolder%\creaInstall.log 2>&1
+
+echo end of crea compilation
+
+exit
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo --creaMaracasVariables.bat--
+echo ----------------------------
+
+echo creatoolsGeneration = %1
+echo creamaracassourcefolder = %2
+echo docgeneration = %3
+echo buildType = %4
+
+set binfolder=%1\c_%buildtype%%platforme%\cb\%2Bin
+cd %binfolder%
+
+IF %4==Debug (
+ cmake -D WXWIDGETS_USE_DEBUG:BOOL=ON CMakeCache.txt
+)
+
+
+::cmake -D CMAKE_CXX_FLAGS:STRING=/openmp
+::cmake -D crea_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\crea CMakeCache.txt
+::cmake -D BBTK_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\bbtk CMakeCache.txt
+::cmake -D BUILD_BBTK_PACKAGE_creaMaracasVisu:BOOL=ON -D creaMaracasVisu_DOC:BOOL=%3 CMakeCache.txt
+::cmake -D BUILD_BBTK_PACKAGE_creaMaracasVisu_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+::cmake CMakeCache.txt
+
+
+::%cmakeBin% -D CMAKE_CXX_FLAGS:STRING=/openmp
+::%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci\crea CMakeCache.txt
+::%cmakeBin% -D BBTK_DIR:PATH=%1\c_%buildtype%%platforme%\ci\bbtk CMakeCache.txt
+::%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMaracasVisu:BOOL=ON -D creaMaracasVisu_DOC:BOOL=%3 CMakeCache.txt
+::%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMaracasVisu_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+::%cmakeBin% CMakeCache.txt
+
+%cmakeBin% -D CMAKE_CXX_FLAGS:STRING=-fopenmp CMakeCache.txt
+%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+%cmakeBin% -D BBTK_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMaracasVisu:BOOL=ON -D creaMaracasVisu_DOC:BOOL=%3 CMakeCache.txt
+%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMaracasVisu_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+%cmakeBin% CMakeCache.txt
+
+
+exit /B
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+set currentdir=%~dp0
+
+echo compile creaMaracasVisu %buildtype% %platforme%
+call %baseFolder%\cleanmod.bat %creamaracassource% %creatoolsGeneration% >> %logFolder%\creaMaracasVisuInstall.log 2>&1
+call %baseFolder%\cmakemod.bat %creamaracassource% %installPrefix% %creatoolsGeneration% >> %logFolder%\creaMaracasVisuInstall.log 2>&1
+call %currentdir%\creaMaracasVariables.bat %creatoolsGeneration% %creamaracassource% %docgeneration% %buildtype% >> %logFolder%\creaMaracasVisuInstall.log 2>&1
+call %baseFolder%\compilemod.bat %buildtype% %creamaracassource% %creatoolsGeneration% >> %logFolder%\creaMaracasVisuInstall.log 2>&1
+call %baseFolder%\ctestmod.bat %creamaracassource% %creatoolsGeneration% >> %logFolder%\creaMaracasVisuInstall.log 2>&1
+echo end of creaMaracasVisu compilation
+
+exit
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo -creaMiniToolsVariables.bat-
+echo ----------------------------
+
+echo creatoolsGeneration = %1
+echo creaminitoolssource = %2
+echo docgeneration = %3
+echo buildType = %4
+
+
+set binfolder=%1\c_%buildtype%%platforme%\cb\%2Bin
+cd %binfolder%
+
+IF %4==Debug (
+ cmake -D WXWIDGETS_USE_DEBUG:BOOL=ON CMakeCache.txt
+)
+
+::cmake -D crea_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\crea CMakeCache.txt
+::cmake -D BBTK_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\bbtk CMakeCache.txt
+::cmake -D BUILD_BBTK_PACKAGE_creaMiniTools:BOOL=ON -D creaMiniTools_DOC:BOOL=%3 CMakeCache.txt
+::cmake -D BUILD_BBTK_PACKAGE_creaMiniTools_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+::cmake -D BUILD_BBTK_PACKAGE_creaMiniToolsBase:BOOL=ON -D creaMiniToolsBase_DOC:BOOL=%3 CMakeCache.txt
+::cmake -D BUILD_BBTK_PACKAGE_creaMiniToolsBase_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+::::cmake -D BUILD_BBTK_PACKAGE_creaMiniTools_BBS_APP:BOOL=ON CMakeCache.txt
+::cmake -D BUILD_BBTK_PACKAGE_creaMiniToolsBase_BBS_APP:BOOL=ON CMakeCache.txt
+::cmake CMakeCache.txt
+
+::%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci\crea CMakeCache.txt
+::%cmakeBin% -D BBTK_DIR:PATH=%1\c_%buildtype%%platforme%\ci\bbtk CMakeCache.txt
+::%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMiniTools:BOOL=ON -D creaMiniTools_DOC:BOOL=%3 CMakeCache.txt
+::%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMiniTools_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+::%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMiniToolsBase:BOOL=ON -D creaMiniToolsBase_DOC:BOOL=%3 CMakeCache.txt
+::%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMiniToolsBase_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+::::%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMiniTools_BBS_APP:BOOL=ON CMakeCache.txt
+::%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMiniToolsBase_BBS_APP:BOOL=ON CMakeCache.txt
+::%cmakeBin% CMakeCache.txt
+
+%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+%cmakeBin% -D BBTK_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMiniTools:BOOL=ON -D creaMiniTools_DOC:BOOL=%3 CMakeCache.txt
+%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMiniTools_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMiniToolsBase:BOOL=ON -D creaMiniToolsBase_DOC:BOOL=%3 CMakeCache.txt
+%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMiniToolsBase_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+::%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMiniTools_BBS_APP:BOOL=ON CMakeCache.txt
+%cmakeBin% -D BUILD_BBTK_PACKAGE_creaMiniToolsBase_BBS_APP:BOOL=ON CMakeCache.txt
+%cmakeBin% CMakeCache.txt
+
+
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+set currentdir=%~dp0
+
+echo Compile creaMiniTools %buildtype% %platforme%
+call %baseFolder%\cleanmod.bat %creaminitoolssource% %creatoolsGeneration% >> %logFolder%\creaMinitoolsInstall.log 2>&1
+call %baseFolder%\cmakemod.bat %creaminitoolssource% %installPrefix% %creatoolsGeneration% >> %logFolder%\creaMinitoolsInstall.log 2>&1
+call %currentdir%\creaMiniToolsVariables.bat %creatoolsGeneration% %creaminitoolssource% %docgeneration% %buildtype% >> %logFolder%\creaMinitoolsInstall.log 2>&1
+call %baseFolder%\compilemod.bat %buildtype% %creaminitoolssource% %creatoolsGeneration% >> %logFolder%\creaMinitoolsInstall.log 2>&1
+::call %baseFolder%\ctestmod.bat %creaminitoolssource% %creatoolsGeneration% >> %logFolder%\creaMinitoolsInstall.log 2>&1
+echo end of creaMiniTools compilation
+
+exit
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+set currentdir=%~dp0
+
+echo compile creaRigidRegistration %buildtype% %platforme%
+call %baseFolder%\cleanmod.bat %crearigidregistrationssource% %creatoolsGeneration% >> %logFolder%\creaRigidRInstall.log 2>&1
+call %baseFolder%\cmakemod.bat %crearigidregistrationssource% %installPrefix% %creatoolsGeneration% >> %logFolder%\creaRigidRInstall.log 2>&1
+call %currentdir%\creaRigidRegistrationVariables.bat %creatoolsGeneration% %crearigidregistrationssource% %docgeneration% %buildtype% >> %logFolder%\creaRigidRInstall.log 2>&1
+call %baseFolder%\compilemod.bat %buildtype% %crearigidregistrationssource% %creatoolsGeneration% >> %logFolder%\creaRigidRInstall.log 2>&1
+call %baseFolder%\ctestmod.bat %crearigidregistrationssource% %creatoolsGeneration% >> %logFolder%\creaRigidRInstall.log 2>&1
+echo end of creaRigidRegistration compilation
+
+exit
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo creaRigidRegistrationVariables.bat
+echo ----------------------------
+
+echo creatoolsGeneration = %1
+echo crearigidregistrationssource = %2
+echo docgeneration = %3
+echo buildType = %4
+
+set binfolder=%1\c_%buildtype%%platforme%\cb\%2Bin
+cd %binfolder%
+
+IF %4==Debug (
+ cmake -D WXWIDGETS_USE_DEBUG:BOOL=ON CMakeCache.txt
+)
+
+::cmake -D crea_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\crea CMakeCache.txt
+::cmake -D BBTK_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\bbtk CMakeCache.txt
+::cmake -D BUILD_BBTK_PACKAGE_PackRecalage:BOOL=ON CMakeCache.txt
+::cmake -D BUILD_creaRigidRegistration_DOC:BOOL=%3 -D BUILD_BBTK_PACKAGE_PackRecalage_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+::cmake CMakeCache.txt
+::cmake CMakeCache.txt
+
+::%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci\crea CMakeCache.txt
+::%cmakeBin% -D BBTK_DIR:PATH=%1\c_%buildtype%%platforme%\ci\bbtk CMakeCache.txt
+::%cmakeBin% -D BUILD_BBTK_PACKAGE_PackRecalage:BOOL=ON CMakeCache.txt
+::%cmakeBin% -D BUILD_creaRigidRegistration_DOC:BOOL=%3 -D BUILD_BBTK_PACKAGE_PackRecalage_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+::%cmakeBin% CMakeCache.txt
+::%cmakeBin% CMakeCache.txt
+
+%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+%cmakeBin% -D BBTK_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+%cmakeBin% -D BUILD_BBTK_PACKAGE_PackRecalage:BOOL=ON CMakeCache.txt
+%cmakeBin% -D BUILD_creaRigidRegistration_DOC:BOOL=%3 -D BUILD_BBTK_PACKAGE_PackRecalage_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+%cmakeBin% CMakeCache.txt
+%cmakeBin% CMakeCache.txt
+
+
+
+exit /B
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+set currentdir=%~dp0
+
+echo Compile creaTools %buildtype% %platforme%
+echo call %baseFolder%\cleanmod.bat %creatoolssource% %creatoolsGeneration% >> %logFolder%\creaToolsInstall.log 2>&1
+
+call %baseFolder%\cleanmod.bat %creatoolssource% %creatoolsGeneration% >> %logFolder%\creaToolsInstall.log 2>&1
+call %baseFolder%\cmakemod.bat %creatoolssource% %installPrefix% %creatoolsGeneration% >> %logFolder%\creaToolsInstall.log 2>&1
+call %currentdir%\creaToolsVariables.bat %creatoolsGeneration% %creatoolssource% %docgeneration% %buildtype% %plateforme% >> %logFolder%\creaToolsInstall.log 2>&1
+
+::call %baseFolder%\compilemod.bat %buildtype% %creatoolssource% %creatoolsGeneration% >> %logFolder%\creaToolsInstall.log 2>&1
+set binfolder=%creatoolsGeneration%\c_%buildtype%%platforme%\cb\%creatoolssource%Bin
+cd %binfolder%
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS%
+mingw32-make.exe package
+
+move /Y %binfolder%\*.exe %creatoolsGeneration%\..\
+::call %baseFolder%\ctestmod.bat %creatoolssource% %creatoolsGeneration% >> %logFolder%\creaToolsInstall.log 2>&1
+echo end of creaTools compilation
+
+exit
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo ---creaToolVariables.bat----
+echo ----------------------------
+
+set creatoolsGeneration=%1
+set creatoolssource=%2
+set docgeneration=%3
+set buildType=%4
+set plateforme=%5
+
+echo creatoolsGeneration = %creatoolsGeneration%
+echo creatoolssource = %creatoolssource%
+echo docgeneration = %docgeneration%
+echo buildType = %buildType%
+echo plateforme = %plateforme%
+
+
+
+set binfolder=%1\c_%buildtype%%platforme%\cb\%2Bin
+cd %binfolder%
+
+IF %4==Debug (
+ cmake -D WXWIDGETS_USE_DEBUG:BOOL=ON CMakeCache.txt
+)
+
+if %platforme%==Win32 (
+ set buildPlatform=win32
+) else (
+ if %PROCESSOR_ARCHITECTURE%==x86 (
+ set buildPlatform=win32
+ ) else (
+ set buildPlatform=win64
+ )
+)
+
+::cmake -D CREATOOLS_BUILDTYPE:STRING=%buildType% -D CREATOOLS_PLATFORM:STRING=%buildPlatform% CMakeCache.txt
+::cmake -D CREATOOLS_SOURCE_PATH:PATH=%creatoolsGeneration%\creatools_%buildtype%%platforme%\creatools_install CMakeCache.txt
+
+
+%cmakeBin% -D CREATOOLS_BUILDTYPE:STRING=%buildType% -D CREATOOLS_PLATFORM:STRING=%buildPlatform% CMakeCache.txt
+%cmakeBin% -D CREATOOLS_SOURCE_PATH:PATH=%creatoolsGeneration%\c_%buildtype%%platforme%\ci CMakeCache.txt
+
+
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo -----creaVariables.bat------
+echo ----------------------------
+
+echo creatoolsGeneration = %1
+echo creasource = %2
+echo docgeneration = %3
+echo buildType = %4
+
+set binfolder=%1\c_%buildtype%%platforme%\cb\%2Bin
+cd %binfolder%
+
+IF %4==Debug (
+ cmake -D WXWIDGETS_USE_DEBUG:BOOL=ON CMakeCache.txt
+)
+
+::IF %PROCESSOR_ARCHITECTURE%==x86 (
+:: cmake -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt
+::) ELSE (
+:: cmake -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CREA_BUILD_WX_X64:BOOL=ON CMakeCache.txt
+::)
+
+%cmakeBin% -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CREA_BUILD_WX_X64:BOOL=ON CMakeCache.txt
+%cmakeBin% -D CMAKE_CXX_FLAGS:STRING=-fpermissive CMakeCache.txt
+::%cmakeBin% -D WXWIDGETS_ROOT_DIR:PATH='%WXWIN%' CMakeCache.txt
+::%cmakeBin% -D WXWIDGETS_ROOT_DIR="uno dos tres" CMakeCache.txt
+
+exit /B
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+
+set currentdir=%~dp0
+
+echo compile creaVtk %buildtype% %platforme%
+call %baseFolder%\cleanmod.bat %creavtksource% %creatoolsGeneration% >> %logFolder%\creaVtkInstall.log 2>&1
+call %baseFolder%\cmakemod.bat %creavtksource% %installPrefix% %creatoolsGeneration% >> %logFolder%\creaVtkInstall.log 2>&1
+call %currentdir%\creaVtkVariables.bat %creatoolsGeneration% %creavtksource% %docgeneration% %buildtype% >> %logFolder%\creaVtkInstall.log 2>&1
+call %baseFolder%\compilemod.bat %buildtype% %creavtksource% %creatoolsGeneration% >> %logFolder%\creaVtkInstall.log 2>&1
+call %baseFolder%\ctestmod.bat %creavtksource% %creatoolsGeneration% >> %logFolder%\creaVtkInstall.log 2>&1
+echo end of creaVtk compilation
+
+exit
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo --creaVtkVariables.bat--
+echo ----------------------------
+
+echo creatoolsGeneration = %1
+echo creavtksourcefolder = %2
+echo docgeneration = %3
+echo buildType = %4
+
+set binfolder=%1\c_%buildtype%%platforme%\cb\%2Bin
+cd %binfolder%
+
+
+::cmake -D crea_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\crea CMakeCache.txt
+::cmake -D BBTK_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\bbtk CMakeCache.txt
+::cmake -D BUILD_BBTK_PACKAGE_creaVtk:BOOL=ON -D creaVtk_DOC:BOOL=%3 CMakeCache.txt
+::cmake -D BUILD_BBTK_PACKAGE_creaVtk_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+::cmake CMakeCache.txt
+
+::%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci\crea CMakeCache.txt
+::%cmakeBin% -D BBTK_DIR:PATH=%1\c_%buildtype%%platforme%\ci\bbtk CMakeCache.txt
+::%cmakeBin% -D BUILD_BBTK_PACKAGE_creaVtk:BOOL=ON -D creaVtk_DOC:BOOL=%3 CMakeCache.txt
+::%cmakeBin% -D BUILD_BBTK_PACKAGE_creaVtk_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+::%cmakeBin% CMakeCache.txt
+
+%cmakeBin% -D CMAKE_CXX_FLAGS:STRING=-fopenmp CMakeCache.txt
+%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+%cmakeBin% -D BBTK_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+%cmakeBin% -D BUILD_BBTK_PACKAGE_creaVtk:BOOL=ON -D creaVtk_DOC:BOOL=%3 CMakeCache.txt
+%cmakeBin% -D BUILD_BBTK_PACKAGE_creaVtk_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt
+%cmakeBin% CMakeCache.txt
+
+
+
+exit /B
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo creaenvironmentVariables.bat
+echo ----------------------------
+
+echo creatoolsGeneration = %1
+echo creamaracassourcefolder = %2
+echo docgeneration = %3
+echo buildType = %4
+
+set binfolder=%1\c_%buildtype%%platforme%\cb\%2Bin
+cd %binfolder%
+
+IF %4==Debug (
+ cmake -D WXWIDGETS_USE_DEBUG:BOOL=ON CMakeCache.txt
+)
+
+::cmake -D crea_DIR:PATH=%1\creatools_%buildtype%%platforme%\creatools_install\crea CMakeCache.txt
+
+::%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci\crea CMakeCache.txt
+
+%cmakeBin% -D crea_DIR:PATH=%1\c_%buildtype%%platforme%\ci CMakeCache.txt
+
+exit /B
\ No newline at end of file
--- /dev/null
+echo gitcall
+rem if not exist %1 exit
+"%bash%" --login -i -c "exec "%1""
+::call %1%
--- /dev/null
+echo tmp.sh
+mkdir C:/Eduardo/Creatis/C11/ct
+mkdir C:/Eduardo/Creatis/C11/ct/cs
+cd C:/Eduardo/Creatis/C11/ct/cs
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/crea
+cd crea
+git checkout vtk8itk5wx3-mingw64
+cd ..
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/bbtk
+cd bbtk
+git checkout vtk8itk5wx3-mingw64
+cd ..
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaMaracasVisu
+cd creaMaracasVisu
+git checkout vtk8itk5wx3-mingw64
+cd ..
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaVtk
+cd creaVtk
+git checkout vtk8itk5wx3-mingw64
+cd ..
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaEnvironment
+cd creaEnvironment
+git checkout vtk8itk5wx3-mingw64
+cd ..
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaBruker
+cd creaBruker
+git checkout vtk8itk5wx3-mingw64
+cd ..
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaImageIO
+cd creaImageIO
+git checkout vtk8itk5wx3-mingw64
+cd ..
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaContours
+cd creaContours
+git checkout vtk8itk5wx3-mingw64
+cd ..
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaRigidRegistration
+cd creaRigidRegistration
+git checkout vtk8itk5wx3-mingw64
+cd ..
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/bbtkGEditor
+cd bbtkGEditor
+git checkout vtk8itk5wx3-mingw64
+cd ..
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaMiniTools
+cd creaMiniTools
+git checkout vtk8itk5wx3-mingw64
+cd ..
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaTools
+cd creaTools
+git checkout vtk8itk5wx3-mingw64
+cd ..
--- /dev/null
+PROJECT(crea_TPdlls)
+
+cmake_minimum_required(VERSION 2.6)
+
+SET(PROJECT_MAJOR_VERSION 4)
+SET(PROJECT_MINOR_VERSION 1)
+SET(PROJECT_BUILD_VERSION 0)
+
+SET(CREA_VERBOSE_CMAKE TRUE)
+
+
+MACRO (TODAY RESULT)
+ IF (WIN32)
+ EXECUTE_PROCESS(COMMAND "cmd" " /C date /T" OUTPUT_VARIABLE ${RESULT})
+ string(REGEX REPLACE "(..)/(..)/..(..).*" "\\1/\\2/\\3" ${RESULT} ${${RESULT}})
+ ELSEIF(UNIX)
+ EXECUTE_PROCESS(COMMAND "date" "+%d/%m/%Y" OUTPUT_VARIABLE ${RESULT})
+ string(REGEX REPLACE "(..)/(..)/..(..).*" "\\1/\\2/\\3" ${RESULT} ${${RESULT}})
+ ELSE (WIN32)
+ MESSAGE(SEND_ERROR "date not implemented")
+ SET(${RESULT} 000000)
+ ENDIF (WIN32)
+ENDMACRO (TODAY)
+
+
+TODAY(CREATOOLS_COMPILATION_DATE)
+
+
+## Project: @CMAKE_PROJECT_NAME@
+## Version: @PROJECT_MAJOR_VERSION@.@PROJECT_MINOR_VERSION@.@PROJECT_BUILD_VERSION@
+## Platform: @CREATOOLS_PLATFORM@
+## Build Type: @CREATOOLS_BUILDTYPE@
+##Compilation date: @CREATOOLS_COMPILATION_DATE@
+ CONFIGURE_FILE(
+ ${CMAKE_CURRENT_SOURCE_DIR}/Version.txt.in
+ ${${CMAKE_PROJECT_NAME}_BINARY_DIR}/Version.txt
+ @ONLY IMMEDIATE
+ )
+
+SUBDIRS(install)
--- /dev/null
+Please refer to each software license.
\ No newline at end of file
--- /dev/null
+To build creaThird party dlls 2 mechanisms are proposed
+
+The first one involves the installation directories where you compiled the libraries
+wxWidgets, GDCM, VTK, ITK, boost and QT
+
+This will recurse into the directories finding the corresponding dlls, and creating the
+installer with them.
+
+The second mechanism will ask for a directory where all the dlls must be placed before hand.
+This mechanism will be easier if you have compiled and install each library and you have created
+the creaThirdPartyLibraries installer.
+
+Launch the CMakeLists.txt file and Give the directory where all the dlls are located.
+Add the tth directory as this was added in previous releases.
+
+End
+
+
+(c) CREATIS 2009
\ No newline at end of file
--- /dev/null
+# ---------------------------------------------------------------------
+#
+# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+# pour la Santé)
+# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+#
+# This software is governed by the CeCILL-B license under French law and
+# abiding by the rules of distribution of free software. You can use,
+# modify and/ or redistribute the software under the terms of the CeCILL-B
+# license as circulated by CEA, CNRS and INRIA at the following URL
+# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+# or in the file LICENSE.txt.
+#
+# As a counterpart to the access to the source code and rights to copy,
+# modify and redistribute granted by the license, users are provided only
+# with a limited warranty and the software's author, the holder of the
+# economic rights, and the successive licensors have only limited
+# liability.
+#
+# The fact that you are presently reading this means that you have had
+# knowledge of the CeCILL-B license and that you accept its terms.
+# ------------------------------------------------------------------------
+
+
+ Project: @CMAKE_PROJECT_NAME@
+ Version: @PROJECT_MAJOR_VERSION@.@PROJECT_MINOR_VERSION@.@PROJECT_BUILD_VERSION@
+ Platform: @CREATOOLS_PLATFORM@
+ Build Type: @CREATOOLS_BUILDTYPE@
+Compilation date: @CREATOOLS_COMPILATION_DATE@
+
+
\ No newline at end of file
--- /dev/null
+
+#-----------------------------------------------------------------------------
+# CPACK+NSIS PACKAGING
+#-----------------------------------------------------------------------------
+
+#---Documentation-------------
+#http://www.cmake.org/Wiki/CMake:Packaging_With_CPack
+#http://www.cmake.org/Wiki/CMake:CPackConfiguration
+#http://www.cmake.org/Wiki/CMake:Install_Commands
+
+
+INCLUDE(InstallRequiredSystemLibraries)
+
+SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_NAME} - CREATIS")
+SET(CPACK_PACKAGE_NAME "${CMAKE_PROJECT_NAME}-${CREATOOLS_BUILDTYPE}")
+SET(CPACK_PACKAGE_VENDOR "CREATIS")
+SET(CPACK_PACKAGE_DESCRIPTION_FILE "${PROJECT_SOURCE_DIR}/README.txt")
+SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE.txt")
+SET(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_MAJOR_VERSION})
+SET(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_MINOR_VERSION})
+SET(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_BUILD_VERSION})
+
+
+SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools\\\\${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
+ IF(WIN32)
+ SET(CMAKE_INSTALL_PREFIX C:/CreaTools/crea_dlls_extern)
+ ENDIF(WIN32)
+
+
+IF(WIN32 AND NOT UNIX)
+ # There is a bug in NSI that does not handle full unix paths properly. Make
+ # sure there is at least one set of four (4) backlasshes.
+#EED SET(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/kernel/install/gnome/bbi-icon2.bmp")
+# SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin/BBI_EXE.exe")
+ SET(CPACK_NSIS_DISPLAY_NAME "${PROJECT_NAME}")
+ SET(CPACK_NSIS_HELP_LINK "http://www.creatis.insa-lyon.fr/creatools/${PROJECT_NAME}")
+ SET(CPACK_NSIS_URL_INFO_ABOUT "http://www.creatis.insa-lyon.fr/creatools/${PROJECT_NAME}")
+ SET(CPACK_NSIS_CONTACT "info-dev@creatis.insa-lyon.fr")
+ SET(CPACK_NSIS_MODIFY_PATH OFF)
+
+ set (CREA_BOOST_LYBRARY boost)
+ set (CREA_GDCM_LYBRARY gdcm13 )
+ set (CREA_ITK_LYBRARY itk )
+ set (CREA_QT_LYBRARY qt )
+ set (CREA_VTK_LYBRARY vtk )
+ set (CREA_WXWIN_LYBRARY wxWidgets)
+ set (CREA_XERCES_LYBRARY xerces)
+ set (CREA_SQLITE_LYBRARY sqlite)
+ set (CREA_SQLITE_LYBRARY tth)
+
+ELSE(WIN32 AND NOT UNIX)
+# SET(CPACK_STRIP_FILES "bin/bbi")
+ SET(CPACK_SOURCE_STRIP_FILES "")
+ENDIF(WIN32 AND NOT UNIX)
+#SET(CPACK_PACKAGE_EXECUTABLES "TestWxGimmickDialog" "Gimmick!")
+
+# Aditional INSTALL for CPACK mecanism.
+IF(WIN32)
+ set (MessageLibraryPath "CREA_LIBRARY_DLL_PATH (itk,vtk,gdcm,wx,qt,tth)")
+ set (CREA_LIBRARY_DLL_PATH "" CACHE PATH ${MessageLibraryPath} )
+ IF(NOT CREA_LIBRARY_DLL_PATH)
+ MESSAGE(FATAL_ERROR "${MessageLibraryPath} not found")
+ ENDIF(NOT CREA_LIBRARY_DLL_PATH)
+## INSTALL( FILES ${PROJECT_SOURCE_DIR}/win32/sqlite3.dll DESTINATION bin )
+ STRING(REGEX REPLACE "\\\\" "/" WINDIR "$ENV{WINDIR}")
+ # INSTALL( FILES ${WINDIR}/system32/msvcp71d.dll DESTINATION bin/ )
+ # INSTALL( FILES ${WINDIR}/system32/msvcr71d.dll DESTINATION bin/ )
+
+
+ INSTALL(FILES ${${CMAKE_PROJECT_NAME}_BINARY_DIR}/Version.txt DESTINATION . )
+ INSTALL(DIRECTORY ${CREA_LIBRARY_DLL_PATH}/ DESTINATION . )
+
+#EED 19-11-2009
+# FILE(GLOB LST_FILE_DLL "${CREA_LIBRARY_DLL_PATH}/*.dll")
+# FOREACH( iLST ${LST_FILE_DLL} )
+# INSTALL(
+# FILES ${iLST}
+# DESTINATION bin/
+# )
+# ENDFOREACH(iLST)
+
+#EED 19-11-2009
+# FILE(GLOB LST_FILE_TTH "${CREA_LIBRARY_DLL_PATH}/tth/*.*")
+# FOREACH( iLST ${LST_FILE_TTH} )
+# INSTALL(
+# FILES ${iLST}
+# DESTINATION bin/tth/
+# )
+# ENDFOREACH(iLST)
+
+#EED 19-11-2009
+# SET(MIKTEXDIR "${CREA_LIBRARY_DLL_PATH}/MikTex-2.7/")
+# INSTALL(
+# DIRECTORY ${MIKTEXDIR}
+# DESTINATION bin/MikTex-2.7
+# )
+
+#EED-08oct2009 STRING(REGEX REPLACE "\\\\" "/" ENVPATH "$ENV{Path}")
+
+#EED 19-11-2009
+# SET(MIKTEX_INSTALL_DIR "$INSTDIR\\\\bin\\\\MikTex-2.7\\\\miktex\\\\bin")
+
+ SET(CREA_DLLS_DIR "$INSTDIR\\\\bin")
+ SET(CREATPDLLS_DIRBIN "$INSTDIR")
+
+#EED 19-11-2009
+# SET(CREATIS_ENVIRONMENT_DIRS ";${CREA_DLLS_DIR};${MIKTEX_INSTALL_DIR}")
+ SET(CREATIS_THIRDPARTYDLLS_DIRS ";${CREA_DLLS_DIR}")
+
+
+ SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
+
+
+#EED 19-11-2009
+# WriteRegStr HKLM 'SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment' 'TTH' '$INSTDIR\\\\bin\\\\tth'
+
+ WriteRegStr HKLM 'SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment' 'CREATIS_THIRDPARTYDLLS_DIRS' '${CREATIS_THIRDPARTYDLLS_DIRS}'
+
+ !define Install_ReadEnvStr_RegKey 'HKCU \\\"Environment\\\"'
+ ReadRegStr $0 \\\${Install_ReadEnvStr_RegKey} 'PATH'
+
+ Push '$0;'
+ Push '%CREATIS_THIRDPARTYDLLS_DIRS%'
+ Call StrStr
+ Pop $2
+ StrCmp $2 '' '' AddToPath_doneEED
+ StrCpy $0 \\\"$0;%CREATIS_THIRDPARTYDLLS_DIRS%\\\"
+ WriteRegExpandStr \\\${Install_ReadEnvStr_RegKey} 'PATH' $0
+
+ AddToPath_doneEED:
+
+ WriteRegStr HKLM 'SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment' 'BOOST_ROOT' '$INSTDIR\\\\'
+ WriteRegStr HKLM 'SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment' 'GDCM_DIR' '$INSTDIR\\\\lib\\\\gdcm\\\\'
+ WriteRegStr HKLM 'SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment' 'ITK_DIR' '$INSTDIR\\\\lib\\\\cmake\\\\ITK-5.0\\\\'
+ WriteRegStr HKLM 'SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment' 'QTDIR' '$INSTDIR\\\\'
+ WriteRegStr HKLM 'SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment' 'VTK_DIR' '$INSTDIR\\\\lib\\\\cmake\\\\vtk-8.1\\\\'
+ WriteRegStr HKLM 'SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment' 'WXWIN' '$INSTDIR\\\\'
+ WriteRegStr HKLM 'SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment' 'XERCES_DIR' '$INSTDIR\\\\cmake'
+ WriteRegStr HKLM 'SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment' 'SQLITE_DIR' '$INSTDIR\\\\'
+ WriteRegStr HKLM 'SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment' 'TTH' '$INSTDIR\\\\'
+
+ CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Version.txt.lnk' '${CREATPDLLS_DIRBIN}\\\\Version.txt'
+ SendMessage \\\${HWND_BROADCAST} \\\${WM_WININICHANGE} 0 'STR:Environment' /TIMEOUT=5000
+
+
+ ")
+
+ SET(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "
+ !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
+ Delete '$SMPROGRAMS\\\\$MUI_TEMP\\\\Version.txt.lnk'
+
+ StrCpy $MUI_TEMP '$SMPROGRAMS\\\\$MUI_TEMP'
+ RMDir /r $MUI_TEMP
+
+ !define Uninstall_EnvStr_RegKey 'HKLM \\\"SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment\\\"'
+ WriteRegExpandStr \\\${Uninstall_EnvStr_RegKey} 'CREATIS_THIRDPARTYDLLS_DIRS' ''
+
+ WriteRegExpandStr \\\${Uninstall_EnvStr_RegKey} 'BOOST_ROOT' ''
+ WriteRegExpandStr \\\${Uninstall_EnvStr_RegKey} 'GDCM_DIR' ''
+ WriteRegExpandStr \\\${Uninstall_EnvStr_RegKey} 'ITK_DIR' ''
+ WriteRegExpandStr \\\${Uninstall_EnvStr_RegKey} 'QTDIR' ''
+ WriteRegExpandStr \\\${Uninstall_EnvStr_RegKey} 'VTK_DIR' ''
+ WriteRegExpandStr \\\${Uninstall_EnvStr_RegKey} 'WXWIN' ''
+ WriteRegExpandStr \\\${Uninstall_EnvStr_RegKey} 'XERCES_DIR' ''
+ WriteRegExpandStr \\\${Uninstall_EnvStr_RegKey} 'SQLITE_DIR' ''
+ WriteRegExpandStr \\\${Uninstall_EnvStr_RegKey} 'TTH' ''
+
+ SendMessage \\\${HWND_BROADCAST} \\\${WM_WININICHANGE} 0 'STR:Environment' /TIMEOUT=5000
+
+ ")
+
+
+
+
+ENDIF(WIN32)
+
+INCLUDE(CPack)
\ No newline at end of file
--- /dev/null
+
+set thirdpartyGenerationBase=C:\Eduardo\Creatis\C11\tpl\
+
+set cmakeBin=C:\Eduardo\Creatis\DevelopperTools\cmake-3.17.1-win64-x64\bin\cmake.exe
+
+set wgetPath="C:\Eduardo\Creatis\DevelopperTools\wget-1.19.4-win32\wget.exe"
+
+set zipPath="C:\Program Files\7-Zip\7z.exe"
+::set zipPath="peazip -ext2here "
+
+set DirMingwDlls=C:\Eduardo\Creatis\DevelopperTools\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin
+
+set PATH=C:\Windows\system32;C:\Eduardo\Creatis\DevelopperTools\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;
+
+
+start /wait install_generate_thirdparty-x64Release.bat
+
+::REM start /wait install_generate_thirdparty-x64Debug.bat
+::REM start /wait install_generate_thirdparty-x86Release.bat
+:: REM start /wait install_generate_thirdparty-x86Debug.bat
+
+::pause
\ No newline at end of file
--- /dev/null
+
+::@echo off
+
+echo -----------------------------------
+echo ---Setting Environment Variables---
+echo -----------------------------------
+
+set thirdpartyGeneration=%thirdpartyGenerationBase%\x64-R
+set buildType=release
+
+::Set the following line ON if you want to force x86 compilation
+::set forcex86=OFF
+
+call scripts/tpl_variables.bat
+
+call scripts/makeAll.bat
+
+pause
+
+exit
\ No newline at end of file
--- /dev/null
+@echo off
+
+set thirdpartyGeneration=%1
+
+set installpath=%thirdpartyGeneration%\tpi
+set binpath=%thirdpartyGeneration%\tpb
+set sourcepath=%thirdpartyGeneration%\tps
+set LogFolder=%thirdpartyGeneration%\installLog
+
+echo -----------------------------------
+echo -------Removing Folders------------
+echo -----------------------------------
+
+if %EEDcleanSOURCES%==FALSE GOTO SKIPCLEANSOURCES
+rmdir /S /Q %sourcepath%
+:SKIPCLEANSOURCES
+
+if %EEDcleanBIN%==FALSE GOTO SKIPCLEANBIN
+rmdir /S /Q %binpath%
+:SKIPCLEANBIN
+
+if %EEDcleanINSTALL%==FALSE GOTO SKIPCLEANINSTALL
+rmdir /S /Q %installpath%
+:SKIPCLEANINSTALL
+
+if %EEDcleanLOGS%==FALSE GOTO SKIPCLEANLOGS
+rmdir /S /Q %LogFolder%
+:SKIPCLEANLOGS
+
+echo -----------------------------------
+echo -------Creating Folders------------
+echo -----------------------------------
+
+mkdir %thirdpartyGeneration%
+cd %thirdpartyGeneration%
+mkdir %sourcepath%
+mkdir %binpath%
+mkdir %installpath%
+mkdir %LogFolder%
\ No newline at end of file
--- /dev/null
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+REM pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM This software is governed by the CeCILL-B license under French law and
+REM abiding by the rules of distribution of free software. You can use,
+REM modify and/ or redistribute the software under the terms of the CeCILL-B
+REM license as circulated by CEA, CNRS and INRIA at the following URL
+REM http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+REM or in the file LICENSE.txt.
+REM
+REM As a counterpart to the access to the source code and rights to copy,
+REM modify and redistribute granted by the license, users are provided only
+REM with a limited warranty and the software's author, the holder of the
+REM economic rights, and the successive licensors have only limited
+REM liability.
+REM
+REM The fact that you are presently reading this means that you have had
+REM knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------
+
+@echo off
+echo ----------------------------
+echo -------ctestmod.bat---------
+echo ----------------------------
+echo Module Sources = %1
+echo creatoolsGeneration = %2
+
+set binfolder=%2\creatools_%buildtype%%platforme%\creatools_bin\%1Bin
+
+cd %binfolder%
+
+:: EED>> cmake -D BUILD_TESTING:BOOL=OFF -D INCLUDE_CTEST:BOOL=OFF CMakeCache.txt
+
+:: EED>> ctest -D ContinuousStart -D ContinuousUpdate -D ContinuousConfigure -D ContinuousBuild -D ContinuousTest -D ContinuousSubmit
+:: EED>> ctest -D ContinuousMemCheck -D ContinuousSubmit
+:: EED>> ctest -D ExperimentalStart -D ExperimentalUpdate -D ExperimentalConfigure -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit
+:: EED>> ctest -D ExperimentalMemCheck -D ExperimentalSubmit
+
+:: EED-12mai2011>> ctest -D ExperimentalConfigure -D ExperimentalBuild
+
+:: EED>> ctest -D NightlyStart -D NightlyUpdate -D NightlyConfigure -D NightlyBuild -D NightlyTest -D NightlySubmit
+:: EED>> ctest -D NightlyMemCheck -D NightlySubmit
+
+exit /B
\ No newline at end of file
--- /dev/null
+@echo off
+echo -----------------------------------
+echo --------Download Libraries---------
+echo -----------------------------------
+
+echo -----------------------------------
+echo ---Setting Environment Variables---
+echo -----------------------------------
+
+set thirdpartyGeneration=%1
+set buildType=%2
+set wxStable=%3
+
+set urlCreatisSource=https://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/
+
+if %PROCESSOR_ARCHITECTURE%==x86 (
+ set ProgramFilesPath_x86=%ProgramFiles%
+ echo "Architecture found = x86"
+) else (
+ set "ProgramFilesPath_x64=%ProgramFiles%"
+ set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
+ echo "Architecture found = x64"
+)
+
+::set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
+
+::if not exist %zipPath% set zipPath="%ProgramFilesPath_x64%\7-Zip\7z.exe"
+::if not exist %zipPath% (
+:: echo ERROR!!! 7Zip has not been found in the system
+:: pause
+:: exit
+::)
+
+::if not exist %vcvarsall% set vcvarsall="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
+::if not exist %vcvarsall% (
+:: echo ERROR!!! Visual Studio has not been found in the system
+:: pause
+:: exit
+::)
+
+if not exist %wgetPath% (
+ echo ERROR!!! wget has not been found in the system
+ exit
+)
+
+set installpath=%thirdpartyGeneration%\tpi
+set binpath=%thirdpartyGeneration%\tpb
+set sourcepath=%thirdpartyGeneration%\tps
+set LogFolder=%thirdpartyGeneration%\installLog
+
+set QTFNAME=qt-everywhere-opensource-src-4.8.2.zip
+
+::set ITKFNAME=InsightToolkit-3.20.1.zip
+::set ITKFNAME=InsightToolkit-4.12.1.tar
+set ITKFNAME=InsightToolkit-5.0.1-patchCreatis.zip
+
+::set WXFNAME=wxWidgets-2.8.12.zip
+::set WXVERSION=2.8.12
+set WXFNAME=wxWidgets-3.0.4.7z
+set WXVERSION=3.0.4
+
+:: set BOOSTFNAME=boost_1_49_0.7z
+:: set BOOSTFNAME=boost_1_52_0.7z
+::set BOOSTFNAME=boost_1_64_0.7z
+set BOOSTFNAME=boost_1_69_0.zip
+
+::set XERCESFNAME=xerces-c-3.1.1.zip
+::set XERCESFNAME=xerces-c-3.1.4.zip
+set XERCESFNAME=xerces-c-3.2.3.zip
+
+::set VTKFNAME=vtk-5.10.0.zip
+:: set VTKFNAME=VTK-8.1.1-patch_mingw64.7z
+set VTKFNAME=VTK-8.1.1-Patch.7z
+
+::set GDCMFNAME=gdcm_05_Mai_2011.tar
+::set GDCMFNAME=gdcm_11_Oct_2011.tar
+::set GDCMFNAME=gdcm_10_Mars_2017-vtk7.tar
+set GDCMFNAME=gdcm13_2019_06_17_vtk8.zip
+
+set TTHFNAME=tth_exe.zip
+set SQLITEFNAME=sqlite_v3.6.23.1.zip
+set JOMFNAME=jom.zip
+set DLFCNFNAME=dlfcn-win32-2018-07.7z
+set OPENGLMESANAME=opengl-mesa.zip
+
+
+echo -----------------------------------
+echo Environment variables Configuration
+echo -----------------------------------
+echo ThirdpartyGeneration=%thirdpartyGeneration%
+echo BuildType=%buildType%
+echo wget=%wgetPath%
+echo urlCreatis=%urlCreatisSource%
+echo 7zip=%zipPath%
+::echo Visual Studio=%vcvarsall%
+echo InstallPath=%installpath%
+echo BinPath=%binpath%
+echo SourcePath=%sourcepath%
+
+echo -----------------------------------
+echo ------Downloading Sources----------
+echo -----------------------------------
+
+cd %sourcepath%\
+
+if %EEDdownloadQT%==FALSE GOTO SKIPDOWNLOADQT
+ %wgetPath% "http://releases.qt-project.org/qt4/source/%QTFNAME%"
+ %wgetPath% "http://releases.qt-project.org/jom/%JOMFNAME%"
+ echo -----------------------------------
+ echo --------------Qt-------------------
+ echo -----------------------------------
+ call %vcvarsall%
+ cd %sourcepath%
+ %zipPath% x %sourcepath%\%QTFNAME%
+ del %sourcepath%\%QTFNAME%
+ echo -----------------------------------
+ echo --------------JOM------------------
+ echo -----------------------------------
+ cd %sourcepath%
+ %zipPath% x %sourcepath%\%JOMFNAME% -o*
+:: del %sourcepath%\%JOMFNAME%
+:SKIPDOWNLOADQT
+
+
+if %EEDdownloadITK%==FALSE GOTO SKIPDOWNLOADITK
+ %wgetPath% --no-check-certificate "%urlCreatisSource%/%ITKFNAME%"
+ echo -----------------------------------
+ echo -------------ITK-------------------
+ echo -----------------------------------
+ cd %sourcepath%
+ %zipPath% x %ITKFNAME%
+:: del %ITKFNAME%
+:: del %ITKFNAME%.gz
+:SKIPDOWNLOADITK
+
+if %EEDdownloadWXWINDOWS%==FALSE GOTO SKIPDOWNLOADWXWINDOWS
+:: %wgetPath% "http://downloads.sourceforge.net/project/wxwindows/%WXVERSION%/%WXFNAME%?r=http%3A%2F%2Fwww.wxwidgets.org%2Fdownloads%2F%23latest_dev&ts=1357255370&use_mirror=ufpr"
+ %wgetPath% --no-check-certificate "%urlCreatisSource%/%WXFNAME%"
+ echo -----------------------------------
+ echo -----------wxWidgets---------------
+ echo -----------------------------------
+ echo ----------Extracting---------------
+ cd %sourcepath%
+ %zipPath% x %sourcepath%\%WXFNAME% -owxWidgets_%WXVERSION%
+:: del %sourcepath%\%WXFNAME%
+:SKIPDOWNLOADWXWINDOWS
+
+if %EEDdownloadBOOST%==FALSE GOTO SKIPDOWNLOADBOOST
+:: %wgetPath% "http://downloads.sourceforge.net/project/boost/boost/1.49.0/%BOOSTFNAME%?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F1.49.0%2F&ts=1357255694&use_mirror=hivelocity"
+:: %wgetPath% "http://downloads.sourceforge.net/project/boost/boost/1.64.0/boost_1_64_0.7z?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F1.64.0%2Fboost_1_64_0.7z%2Fdownload&ts=1360058777&use_mirror=ignum"
+ %wgetPath% --no-check-certificate "%urlCreatisSource%/%BOOSTFNAME%"
+ echo -----------------------------------
+ echo ------------Boost------------------
+ echo -----------------------------------
+ cd %sourcepath%
+ %zipPath% x %sourcepath%\%BOOSTFNAME%
+:: del %sourcepath%\%BOOSTFNAME%
+:SKIPDOWNLOADBOOST
+
+if %EEDdownloadXERCES%==FALSE GOTO SKIPDOWNLOADXERCES
+:: %wgetPath% "http://mirror.ibcp.fr/pub/apache//xerces/c/3/sources/%XERCESFNAME%"
+ %wgetPath% --no-check-certificate "%urlCreatisSource%/%XERCESFNAME%"
+ echo %wgetPath% "http://mirror.ibcp.fr/pub/apache//xerces/c/3/sources/%XERCESFNAME%"
+
+:: %wgetPath% --no-check-certificate "https://archive.apache.org/dist/xerces/c/3/sources/%XERCESFNAME%"
+ echo -----------------------------------
+ echo -------------XERCES----------------
+ echo -----------------------------------
+ cd %sourcepath%
+ %zipPath% x %XERCESFNAME%
+:: del %XERCESFNAME%
+:SKIPDOWNLOADXERCES
+
+if %EEDdownloadVTK%==FALSE GOTO SKIPDOWNLOADVTK
+:: %wgetPath% --no-check-certificate "http://www.vtk.org/files/release/8.1/%VTKFNAME%"
+ %wgetPath% --no-check-certificate "%urlCreatisSource%/%VTKFNAME%"
+ echo -----------------------------------
+ echo -------------VTK-------------------
+ echo -----------------------------------
+ cd %sourcepath%
+ %zipPath% x %sourcepath%\%VTKFNAME%
+:: del %sourcepath%\%VTKFNAME%
+:SKIPDOWNLOADVTK
+
+if %EEDdownloadGDCM%==FALSE GOTO SKIPDOWNLOADGDCM
+ %wgetPath% --no-check-certificate "%urlCreatisSource%/%GDCMFNAME%"
+ echo -----------------------------------
+ echo ------------GDCM ------------------
+ echo -----------------------------------
+ cd %sourcepath%
+ %zipPath% x %GDCMFNAME%
+:: del %GDCMFNAME%
+:: del %GDCMFNAME%
+:SKIPDOWNLOADGDCM
+
+if %EEDdownloadTTH%==FALSE GOTO SKIPDOWNLOADTTH
+ %wgetPath% "http://hutchinson.belmont.ma.us/tth/tth-noncom/%TTHFNAME%"
+ echo -----------------------------------
+ echo --------------TTH------------------
+ echo -----------------------------------
+ cd %sourcepath%
+ %zipPath% x %TTHFNAME%
+:: del %TTHFNAME%
+:SKIPDOWNLOADTTH
+
+if %EEDdownloadSQLite%==FALSE GOTO SKIPDOWNLOADSQLITE
+ %wgetPath% --no-check-certificate "%urlCreatisSource%/%SQLITEFNAME%"
+ echo ------------------------------------------------
+ echo --------------SQLite (creatis)------------------
+ echo ------------------------------------------------
+ cd %sourcepath%
+ %zipPath% x %SQLITEFNAME%
+:: del %SQLITEFNAME%
+:SKIPDOWNLOADSQLITE
+
+
+if %EEDdownloadDLFCN%==FALSE GOTO SKIPDOWNLOADDLFCN
+ %wgetPath% --no-check-certificate "%urlCreatisSource%/%DLFCNFNAME%"
+:: git clone https://github.com/dlfcn-win32/dlfcn-win32.git
+ echo ------------------------------------------------
+ echo --------------DLFCN (creatis)------------------
+ echo ------------------------------------------------
+ cd %sourcepath%
+ %zipPath% x %DLFCNFNAME%
+:: del %DLFCNFNAME%
+:SKIPDOWNLOADDLFCN
+if %EEDdownloadOPENGLMESA%==FALSE GOTO SKIPDOWNLOADOPENGLMESA
+ %wgetPath% --no-check-certificate "%urlCreatisSource%/../../../crea_Developer_Tools/v4/%OPENGLMESANAME%"
+ echo ------------------------------------------------
+ echo --------------OPENGL MESA (creatis)------------------
+ echo ------------------------------------------------
+ cd %sourcepath%
+ %zipPath% x %OPENGLMESANAME%
+:: del %OPENGLMESANAME%
+:SKIPDOWNLOADOPENGLMESA
+
+
+
+echo -----------------------------------
+echo --------Renaming Folders-----------
+echo -----------------------------------
+cd %sourcepath%
+rename qt-everywhere-opensource-src-4.8.2 qt
+rename wxWidgets_%WXVERSION% wxWidgets
+rename boost_1_69_0 boost
+rename InsightToolkit-5.0.1 itk
+rename VTK-8.1.1 vtk
+rename gdcm13_2018_05_28_vtk8 gdcm13
+rename tth_exe tth
+rename xerces-c-3.2.3 xerces
+rename sqlite_v3.6.23.1 sqlite
+
+echo -----End of Download Libraries-----
+echo -----------------------------------
+echo -----------------------------------
+
+exit /B
\ No newline at end of file
--- /dev/null
+@echo off
+
+set thirdpartyGeneration=%1
+set buildType=%2
+set x86Comp=%3
+
+set LogFolder=%thirdpartyGeneration%\installLog
+
+::echo Calling move_thirdparty_dlls.bat
+::call move_thirdparty_dlls.bat %thirdpartyGeneration% %buildType% %x86Comp% >> %LogFolder%\generateThirdpartydllsExe.log 2>&1
+
+echo Calling install_thirdparty_dlls_cmake.bat
+call install_thirdparty_dlls_cmake.bat %thirdpartyGeneration% %buildType% %x86Comp% >> %LogFolder%\generateThirdpartydllsExe.log 2>&1
+
+exit /B
\ No newline at end of file
--- /dev/null
+@echo off
+echo -----------------------------------
+echo ------Installing Libraries---------
+echo -----------------------------------
+
+echo -----------------------------------
+echo ---Setting Environment Variables---
+echo -----------------------------------
+
+set thirdpartyGeneration=%1
+set buildType=%2
+::The following line is to force x86 or x64 compilation
+::set x86Comp=%3
+
+set installpath=%thirdpartyGeneration%\tpi
+set binpath=%thirdpartyGeneration%\tpb
+set sourcepath=%thirdpartyGeneration%\tps
+
+if %PROCESSOR_ARCHITECTURE%==x86 (
+ set ProgramFilesPath_x86=%ProgramFiles%
+ echo "Architecture found = x86"
+) else (
+ set "ProgramFilesPath_x64=%ProgramFiles%"
+ set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
+ echo "Architecture found = x64"
+)
+
+::set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
+::if not exist %vcvarsall% set vcvarsall="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
+::if not exist %vcvarsall% (
+:: echo ERROR!!! Visual Studio has not been found in the system
+:: exit
+::)
+
+set qt=qt
+set jom=jom
+set wxWidgets=wxWidgets
+set boost=boost
+set xercesc=xerces
+set itk=itk
+set gdcm=gdcm13
+set vtk=vtk
+set sqlite=sqlite
+set dlfcn=dlfcn-win32
+set OPENGLMESA=opengl-mesa
+
+set QTDIR=%sourcepath%\%qt%
+set JOMDIR=%sourcepath%\%jom%
+set WXDIR=%sourcepath%\%wxWidgets%
+set BOOSTDIR=%sourcepath%\%boost%
+set XERCESDIR=%sourcepath%\%xercesc%
+set ITKSRCDIR=%sourcepath%\%itk%
+set VTKSRCDIR=%sourcepath%\%VTK%
+set GDCMSRCDIR=%sourcepath%\%gdcm%
+set SQLITESRCDIR=%sourcepath%\%sqlite%
+set DLFCNSRCDIR=%sourcepath%\%dlfcn%
+set LogFolder=%thirdpartyGeneration%\installLog
+
+echo -----------------------------------
+echo Environment variables Configuration
+echo -----------------------------------
+echo ThirdpartyGeneration=%thirdpartyGeneration%
+echo BuildType=%buildType%
+::echo Visual Studio=%vcvarsall%
+echo InstallPath=%installpath%
+echo BinPath=%binpath%
+echo SourcePath=%sourcepath%
+echo QT=%qt%
+echo WX=%wxWidgets%
+echo BOOST=%boost%
+echo Xercesc=%xercesc%
+echo ITK=%itk%
+echo GDCM=%gdcm%
+echo VTK=%vtk%
+echo QTDIR=%QTDIR%
+echo WKDIR=%WXDIR%
+echo BOOSTDIR=%BOOSTDIR%
+echo XERCESDIR=%XERCESDIR%
+echo ITKSRCDIR=%ITKSRCDIR%
+echo VTKSRCDIR=%VTKSRCDIR%
+echo GDCMDIR=%GDCMSRCDIR%
+echo JOMDIR=%JOMDIR%
+echo SQLITEDIR=%SQLITESRCDIR%
+echo DLFCNSRCDIR=%DLFCNSRCDIR%
+
+echo -----------------------------------
+echo ---End Setting Global Variables----
+echo -----------------------------------
+
+
+::if %x86Comp%==ON (
+:: set addressmodel=32
+:: call %vcvarsall%
+:: echo "Compilation forced x86"
+::) else (
+:: set addressmodel=64
+:: if %PROCESSOR_ARCHITECTURE%==x86 (
+:: call %vcvarsall%
+:: ) else (
+:: call %vcvarsall% amd64
+:: )
+::)
+
+if %EEDinstallQT%==FALSE GOTO SKIPINSTALLQT
+echo -----------------------------------
+echo --------Qt Installation------------
+echo -----------------------------------
+cd %QTDIR%
+set QMAKESPEC=win32-msvc2010
+echo y | configure -%buildType% -opensource -shared -qt-sql-sqlite -phonon -phonon-backend -platform win32-msvc2010 -mp >> %LogFolder%\qtInstall.log 2>&1
+%JOMDIR%\jom.exe -j %NUMBER_OF_PROCESSORS% >> %LogFolder%\qtInstall.log 2>&1
+cd C:\
+:SKIPINSTALLQT
+
+
+if %EEDinstallWXWIDGETS%==FALSE GOTO SKIPINSTALLWXWIDGETS
+echo -----------------------------------
+echo -----wxWidgets Installation--------
+echo -----------------------------------
+cd %binpath%
+mkdir %wxWidgets%Bin
+cd %wxWidgets%Bin
+
+
+::cd %WXDIR%\build\msw
+::if %x86Comp%==ON (
+:: nmake -f makefile.vc BUILD=%buildType% UNICODE=0 SHARED=1 USE_OPENGL=1 >> %LogFolder%\wxInstall.log 2>&1
+::) else (
+:: if %PROCESSOR_ARCHITECTURE%==x86 (
+:: nmake -f makefile.vc BUILD=%buildType% UNICODE=0 SHARED=1 USE_OPENGL=1 >> %LogFolder%\wxInstall.log 2>&1
+:: ) else (
+:: nmake -f makefile.vc TARGET_CPU=AMD64 BUILD=%buildType% UNICODE=0 SHARED=1 USE_OPENGL=1 >> %LogFolder%\wxInstall.log 2>&1
+:: )
+::)
+::cd C:\
+::cmake -D BUILD_SHARED_LIBS:BOOL=ON -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF CMakeCache.txt >> %LogFolder%\wxWidgetsInstall.log 2>&1
+::cmake -D VTK_Group_Views:BOOL=ON CMakeCache.txt >> %LogFolder%\wxWidgetsInstall.log 2>&1
+
+:: 3.1.1 with CMAKE
+::%cmakeBin% -G"MinGW Makefiles" -H%sourcepath%\%wxWidgets% -B%binpath%\%wxWidgets%Bin >> %LogFolder%\wxWidgetsInstall.log 2>&1
+::%cmakeBin% -D CMAKE_BUILD_TYPE:STRING=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\ CMakeCache.txt >> %LogFolder%\wxWidgetsInstall.log 2>&1
+::mingw32-make.exe -j%NUMBER_OF_PROCESSORS% >> %LogFolder%\wxWidgetsInstall.log 2>&1
+::mingw32-make.exe -j%NUMBER_OF_PROCESSORS% install >> %LogFolder%\wxWidgetsInstall.log 2>&1
+
+:: 3.0.4 manual
+:: https://wiki.wxwidgets.org/Compiling_wxWidgets_with_MinGW
+cd %sourcepath%\%wxWidgets%\build\msw
+mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release clean >> %LogFolder%\wxWidgetsInstall.log 2>&1
+mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release -j%NUMBER_OF_PROCESSORS% >> %LogFolder%\wxWidgetsInstall.log 2>&1
+mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release -j%NUMBER_OF_PROCESSORS% >> %LogFolder%\wxWidgetsInstall.log 2>&1
+mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release >> %LogFolder%\wxWidgetsInstall.log 2>&1
+cd ..\..
+mkdir %installpath% >> %LogFolder%\wxWidgetsInstall.log 2>&1
+mkdir %installpath%\lib >> %LogFolder%\wxWidgetsInstall.log 2>&1
+mkdir %installpath%\lib\gcc_dll >> %LogFolder%\wxWidgetsInstall.log 2>&1
+xcopy /Y /S lib\gcc_dll %installpath%\lib\gcc_dll >> %LogFolder%\wxWidgetsInstall.log 2>&1
+mkdir %installpath%\include >> %LogFolder%\wxWidgetsInstall.log 2>&1
+mkdir %installpath%\include\wx >> %LogFolder%\wxWidgetsInstall.log 2>&1
+xcopy /Y /S include\wx %installpath%\include\wx >> %LogFolder%\wxWidgetsInstall.log 2>&1
+
+
+:SKIPINSTALLWXWIDGETS
+
+
+if %EEDinstallBOOST%==FALSE GOTO SKIPINSTALLBOOST
+echo -----------------------------------
+echo ------Boost Installation-----------
+echo -----------------------------------
+
+:: documentation: https://gist.github.com/sim642/29caef3cc8afaa273ce6
+
+mkdir %binpath%\%boost%Bin
+mkdir %binpath%\%boost%Bin\boost-build
+mkdir %binpath%\%boost%Bin\build
+:: mkdir %binpath%\%boost%Bin\boost
+:: mkdir %installpath%\%boost%
+
+cd %sourcepath%\%boost%\tools\build
+call bootstrap.bat gcc >> %LogFolder%\boostInstall.log 2>&1
+b2 install --prefix="%binpath%\%boost%Bin\boost-build" >> %LogFolder%\boostInstall.log 2>&1
+set PATH=%PATH%;%binpath%\%boost%Bin\boost-build\bin
+echo %PATH% >> %LogFolder%\boostInstall.log 2>&1
+cd %sourcepath%\%boost%\
+
+:: --with-system --with-signals
+:: cxxflags="-std=c++98"
+b2 --build-dir=%binpath%\%boost%Bin\build --prefix=%installpath%\ toolset=gcc variant=%buildType% link=shared runtime-link=shared -j %NUMBER_OF_PROCESSORS% install >> %LogFolder%\boostInstall.log 2>&1
+
+
+:: cd %sourcepath%\%boost%
+:: call bootstrap.bat >> %LogFolder%\boostInstall.log 2>&1
+:: REM bjam.exe -j %NUMBER_OF_PROCESSORS% --address-model=%addressmodel% --prefix=%installpath%\%boost% --build-dir=%binpath%\%boost%Bin toolset=msvc-10.0 variant=%buildType% link=shared runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: REM bjam.exe -j %NUMBER_OF_PROCESSORS% --address-model=%addressmodel% --prefix=%installpath%\%boost% --build-dir=%binpath%\%boost%Bin toolset=msvc-10.0 variant=%buildType% link=shared runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: bjam.exe -j %NUMBER_OF_PROCESSORS% address-model=%addressmodel% --prefix=%installpath%\%boost% --build-dir=%binpath%\%boost%Bin toolset=msvc-10.0 variant=%buildType% link=shared runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: bjam.exe -j %NUMBER_OF_PROCESSORS% address-model=%addressmodel% --prefix=%installpath%\%boost% --build-dir=%binpath%\%boost%Bin toolset=msvc-10.0 variant=%buildType% link=shared runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: ::if %x86Comp%==ON (
+:: :: echo -install_thirdparty_all-EED1a
+:: :: bjam.exe -j %NUMBER_OF_PROCESSORS% --prefix=%installpath%\%boost% --toolset=msvc-10.0 --build-type=complete --build-dir=%binpath%\%boost%Bin --link=shared --runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: :: echo -install_thirdparty_all-EED1b
+:: ::) else (
+:: :: if %PROCESSOR_ARCHITECTURE%==x86 (
+:: :: echo -install_thirdparty_all-EED2a
+:: :: bjam.exe -j %NUMBER_OF_PROCESSORS% --prefix=%installpath%\%boost% --toolset=msvc-10.0 --build-type=complete --build-dir=%binpath%\%boost%Bin --link=shared --runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: :: echo -install_thirdparty_all-EED2b
+:: :: ) else (
+:: :: echo -install_thirdparty_all-EED3a
+:: :: bjam.exe -j %NUMBER_OF_PROCESSORS% --address-model=64 --prefix=%installpath%\%boost% --build-dir=%binpath%\%boost%Bin toolset=msvc-10.0 variant=%buildType% link=shared runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: :: echo -install_thirdparty_all-EED3b
+:: :: bjam.exe -j %NUMBER_OF_PROCESSORS% --address-model=64 --prefix=%installpath%\%boost% --build-dir=%binpath%\%boost%Bin toolset=msvc-10.0 variant=%buildType% link=shared runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: :: echo -install_thirdparty_all-EED3c
+:: :: )
+:: ::)
+:: cd C:\
+
+:SKIPINSTALLBOOST
+
+
+if %EEEDinstallVTK%==FALSE GOTO SKIPINSTALLVTK
+echo -----------------------------------
+echo -------VTK Installation------------
+echo -----------------------------------
+cd %binpath%
+mkdir %vtk%Bin
+cd %vtk%Bin
+
+::if %x86Comp%==ON (
+:: cmake -G"Visual Studio 10" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin >> %LogFolder%\vtkInstall.log 2>&1
+::) else (
+:: if %PROCESSOR_ARCHITECTURE%==x86 (
+:: cmake -G"Visual Studio 10" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin >> %LogFolder%\vtkInstall.log 2>&1
+:: ) else (
+:: cmake -G"Visual Studio 10 Win64" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin >> %LogFolder%\vtkInstall.log 2>&1
+:: )
+::)
+::cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%vtk%\ CMakeCache.txt >> %LogFolder%\vtkInstall.log 2>&1
+::cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D VTK_USE_QT:BOOL=ON CMakeCache.txt >> %LogFolder%\vtkInstall.log 2>&1
+::cmake CMakeCache.txt >> %LogFolder%\vtkInstall.log 2>&1
+::FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /target:ALL_BUILD /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\vtkInstall.log 2>&1
+::msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% INSTALL.vcxproj >> %LogFolder%\vtkInstall.log 2>&1
+::cd c:\
+
+%cmakeBin% -G"MinGW Makefiles" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin >> %LogFolder%\VTKInstall.log 2>&1
+%cmakeBin% -D CMAKE_BUILD_TYPE:STRING=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\ CMakeCache.txt >> %LogFolder%\VTKInstall.log 2>&1
+%cmakeBin% -D BUILD_SHARED_LIBS:BOOL=ON -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF CMakeCache.txt >> %LogFolder%\VTKInstall.log 2>&1
+%cmakeBin% -D VTK_Group_Views:BOOL=ON CMakeCache.txt >> %LogFolder%\VTKInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% >> %LogFolder%\VTKInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% install >> %LogFolder%\VTKInstall.log 2>&1
+
+
+
+:SKIPINSTALLVTK
+
+
+if %EEDinstallGDCM%==FALSE GOTO SKIPINSTALLGDCM
+echo -----------------------------------
+echo -------GDCM Installation-----------
+echo -----------------------------------
+cd %binpath%
+mkdir %gdcm%Bin
+cd %gdcm%Bin
+::if %x86Comp%==ON (
+:: cmake -G"Visual Studio 10" -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin >> %LogFolder%\GDCMInstall.log 2>&1
+::) else (
+:: if %PROCESSOR_ARCHITECTURE%==x86 (
+:: cmake -G"Visual Studio 10" -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin >> %LogFolder%\GDCMInstall.log 2>&1
+:: ) else (
+:: cmake -G"Visual Studio 10 Win64" -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin >> %LogFolder%\GDCMInstall.log 2>&1
+:: )
+::)
+::cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%gdcm%\ CMakeCache.txt >> %LogFolder%\GDCMInstall.log 2>&1
+::cmake -D VTK_DIR:PATH=%binpath%\%vtk%Bin\ -D GDCM_VTK:BOOL=ON -D BUILD_TESTING:BOOL=OFF -D GDCM_NAME_SPACE:STRING=gdcm13 CMakeCache.txt >> %LogFolder%\GDCMInstall.log 2>&1
+::cmake CMakeCache.txt >> %LogFolder%\GDCMInstall.log 2>&1
+::FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\GDCMInstall.log 2>&1
+::msbuild INSTALL.vcxproj /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\GDCMInstall.log 2>&1
+::cd c:\
+%cmakeBin% -G"MinGW Makefiles" -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin >> %LogFolder%\GDCMInstall.log 2>&1
+%cmakeBin% -D CMAKE_BUILD_TYPE:STRING=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\ CMakeCache.txt >> %LogFolder%\GDCMInstall.log 2>&1
+%cmakeBin% -D VTK_DIR:PATH=%binpath%\%vtk%Bin\ -D GDCM_VTK:BOOL=ON -D BUILD_TESTING:BOOL=OFF -D GDCM_NAME_SPACE:STRING=gdcm13 CMakeCache.txt >> %LogFolder%\GDCMInstall.log 2>&1
+%cmakeBin% -D BUILD_SHARED_LIBS:BOOL=ON CMakeCache.txt >> %LogFolder%\GDCMInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% >> %LogFolder%\GDCMInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% install >> %LogFolder%\GDCMInstall.log 2>&1
+:SKIPINSTALLGDCM
+
+
+if %EEDinstallITK%==FALSE GOTO SKIPINSTALLITK
+echo -----------------------------------
+echo -------ITK Installation------------
+echo -----------------------------------
+cd %binpath%
+mkdir %itk%Bin
+cd %itk%Bin
+::if %x86Comp%==ON (
+:: cmake -G"Visual Studio 10" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin >> %LogFolder%\ITKInstall.log 2>&1
+::) else (
+:: if %PROCESSOR_ARCHITECTURE%==x86 (
+:: cmake -G"Visual Studio 10" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin >> %LogFolder%\ITKInstall.log 2>&1
+:: ) else (
+:: cmake -G"Visual Studio 10 Win64" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin >> %LogFolder%\ITKInstall.log 2>&1
+:: )
+::)
+
+%cmakeBin% -G"MinGW Makefiles" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin >> %LogFolder%\ITKInstall.log 2>&1
+%cmakeBin% -D CMAKE_BUILD_TYPE:STRING=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\ CMakeCache.txt >> %LogFolder%\ITKInstall.log 2>&1
+%cmakeBin% -D BUILD_SHARED_LIBS:BOOL=ON -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF CMakeCache.txt >> %LogFolder%\ITKInstall.log 2>&1
+::%cmakeBin% -D ITKV3_COMPATIBILITY:BOOL=ON -D Module_ITKReview::BOOL=ON CMakeCache.txt >> %LogFolder%\ITKInstall.log 2>&1
+%cmakeBin% -D Module_ITKReview::BOOL=ON CMakeCache.txt >> %LogFolder%\ITKInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% >> %LogFolder%\ITKInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% install >> %LogFolder%\ITKInstall.log 2>&1
+
+::cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%itk%\ CMakeCache.txt >> %LogFolder%\ITKInstall.log 2>&1
+::cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D ITK_USE_REVIEW:BOOL=ON CMakeCache.txt >> %LogFolder%\ITKInstall.log 2>&1
+::cmake CMakeCache.txt >> %LogFolder%\ITKInstall.log 2>&1
+::FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\ITKInstall.log 2>&1
+::msbuild INSTALL.vcxproj /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\ITKInstall.log 2>&1
+::cd c:\
+
+:SKIPINSTALLITK
+
+
+if %EEDinstallXERCES%==FALSE GOTO SKIPINSTALLXERCES
+echo -----------------------------------
+echo ------XERCES Installation----------
+echo -----------------------------------
+::cd %sourcepath%\%xercesc%\projects\Win32\VC10\xerces-all
+::FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\XERCESInstall.log 2>&1
+::FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\XERCESInstall.log 2>&1
+::msbuild INSTALL.vcxproj /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\XERCESInstall.log 2>&1
+::cd c:\
+cd %binpath%
+mkdir %xercesc%Bin
+cd %xercesc%Bin
+%cmakeBin% -G"MinGW Makefiles" -H%sourcepath%\%xercesc% -B%binpath%\%xercesc%Bin >> %LogFolder%\wercesInstall.log 2>&1
+%cmakeBin% -D CMAKE_BUILD_TYPE:STRING=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\ CMakeCache.txt >> %LogFolder%\wercesInstall.log 2>&1
+::%cmakeBin% -D BUILD_SHARED_LIBS:BOOL=ON -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF CMakeCache.txt >> %LogFolder%\wercesInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% >> %LogFolder%\wercesInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% install >> %LogFolder%\wercesInstall.log 2>&1
+
+:SKIPINSTALLXERCES
+
+
+
+if %EEDinstallSQLite%==FALSE GOTO SKIPINSTALLSQLite
+echo ---------------------------------------
+echo -------SQLite Installation-------------
+echo ---------------------------------------
+cd %binpath%
+mkdir %SQLite%Bin
+cd %SQLite%Bin
+::if %x86Comp%==ON (
+:: cmake -G"Visual Studio 10" -H%sourcepath%\%SQLite% -B%binpath%\%SQLite%Bin >> %LogFolder%\SQLiteInstall.log 2>&1
+::) else (
+:: if %PROCESSOR_ARCHITECTURE%==x86 (
+:: cmake -G"Visual Studio 10" -H%sourcepath%\%SQLite% -B%binpath%\%SQLite%Bin >> %LogFolder%\SQLiteInstall.log 2>&1
+:: ) else (
+:: cmake -G"Visual Studio 10 Win64" -H%sourcepath%\%SQLite% -B%binpath%\%SQLite%Bin >> %LogFolder%\SQLiteInstall.log 2>&1
+:: )
+::)
+::cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%SQLite%\ CMakeCache.txt >> %LogFolder%\SQLiteInstall.log 2>&1
+::cmake CMakeCache.txt >> %LogFolder%\SQLiteInstall.log 2>&1
+::FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /target:ALL_BUILD /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\SQLiteInstall.log 2>&1
+::msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% INSTALL.vcxproj >> %LogFolder%\SQLiteInstall.log 2>&1
+::cd c:\
+
+%cmakeBin% -G"MinGW Makefiles" -H%sourcepath%\%SQLite% -B%binpath%\%SQLite%Bin >> %LogFolder%\SQLiteInstall.log 2>&1
+%cmakeBin% -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\ CMakeCache.txt >> %LogFolder%\SQLiteInstall.log 2>&1
+%cmakeBin% CMakeCache.txt >> %LogFolder%\SQLiteInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% >> %LogFolder%\GDCMInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% install >> %LogFolder%\GDCMInstall.log 2>&1
+
+:SKIPINSTALLSQLite
+
+
+
+if %EEDinstallDLFCN%==FALSE GOTO SKIPINSTALLDLFCN
+echo ------------------------------------------------
+echo -------DLFCN Installation-----------------------
+echo ------------------------------------------------
+cd %binpath%
+mkdir %DLFCN%Bin
+cd %DLFCN%Bin
+
+%cmakeBin% -G"MinGW Makefiles" -H%sourcepath%\%DLFCN% -B%binpath%\%DLFCN%Bin >> %LogFolder%\SQLiteInstall.log 2>&1
+%cmakeBin% -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\ CMakeCache.txt >> %LogFolder%\SQLiteInstall.log 2>&1
+%cmakeBin% CMakeCache.txt >> %LogFolder%\SQLiteInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% >> %LogFolder%\GDCMInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% install >> %LogFolder%\GDCMInstall.log 2>&1
+
+:SKIPINSTALLDLFCN
+
+
+
+echo -------------------------------------------------------
+echo -------PATCH Moving dlls -----------------------------
+echo -------------------------------------------------------
+
+::boost
+move /Y %installpath%\lib\*.dll %installpath%\bin
+:: PATCH ITK (after boost patch)
+:: EED2020-04-14
+copy /Y %installpath%\bin\libitkminc2-5.0.dll %installpath%\lib\libitkminc2-5.0.dll
+::wxWidgets
+move /Y %installpath%\lib\gcc_dll\*.dll %installpath%\bin
+:: dlls mingw
+copy /Y %DirMingwDlls%\*.dll %installpath%\bin
+:: Opengl Mesa
+xcopy /Y %sourcepath%\%OPENGLMESA% %installpath%\bin\opengl-mesa\
+
+echo -----------------------------------
+echo ---End of Installing Libraries-----
+echo -----------------------------------
+
+exit /B
\ No newline at end of file
--- /dev/null
+@echo off
+echo -----------------------------------
+echo -----Generating Installers of------
+echo -------creaThirdPartyDlls----------
+echo -----------------------------------
+echo -----------------------------------
+echo ------Asking Architecture----------
+echo -----------------------------------
+
+::if %PROCESSOR_ARCHITECTURE%==x86 (
+:: set ProgramFilesPath_x86=%ProgramFiles%
+:: echo "Architecture found = x86"
+::) else (
+:: set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
+:: echo "Architecture found = x64"
+::)
+
+echo ----End Asking Architecture--------
+
+set thirdpartyGeneration=%1
+set buildType=%2
+::The following line is to force x86 or x64 compilation
+set x86Comp=%3
+
+
+set thirdparty_cmake=%cd%\..\cmake
+
+::set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
+
+set thirdpartydllspath=%thirdpartyGeneration%\tpi\
+set sourcepath=%thirdparty_cmake%\crea_ThirdParty_dlls
+set binpath=%thirdpartyGeneration%\tpb\crea_ThirdParty_dlls_Bin
+::set installpath="%ProgramFilesPath_x86%\creatools\crea_ThirdParty_dlls"
+
+::if not exist %vcvarsall% set zipPath="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
+::if not exist %vcvarsall% (
+:: echo ERROR!!! Visual Studio has not been found in the system
+:: exit
+::)
+
+::if %x86Comp%==ON (
+:: call %vcvarsall%
+:: set installpath="%ProgramFilesPath_x86%\creatools\crea_ThirdParty_dlls"
+:: echo "Compilation forced x86"
+::) else (
+:: if %PROCESSOR_ARCHITECTURE%==x86 (
+:: call %vcvarsall%
+:: set installpath="%ProgramFilesPath_x86%\creatools\crea_ThirdParty_dlls"
+:: ) else (
+:: call %vcvarsall% amd64
+:: set installpath="%ProgramFiles%\creatools\crea_ThirdParty_dlls"
+:: )
+::)
+
+rmdir /S /Q %binpath%
+mkdir %binpath%
+cd %binpath%
+
+::if %x86Comp%==ON (
+:: set buildPlatform=win32
+:: cmake -G"Visual Studio 10" -H%sourcepath% -B%binpath%
+::) else (
+:: if %PROCESSOR_ARCHITECTURE%==x86 (
+:: set buildPlatform=win32
+:: cmake -G"Visual Studio 10" -H%sourcepath% -B%binpath%
+:: ) else (
+:: set buildPlatform=win64
+:: cmake -G"Visual Studio 10 Win64" -H%sourcepath% -B%binpath%
+:: )
+::)
+
+::cmake -D CREATOOLS_BUILDTYPE:STRING=%buildType% -D CREATOOLS_PLATFORM:STRING=%buildPlatform% CMakeCache.txt
+::cmake -D CMAKE_INSTALL_PREFIX:PATH=%installpath% CMakeCache.txt
+::cmake -D CREA_LIBRARY_DLL_PATH:PATH=%thirdpartydllspath% CMakeCache.txt
+::cmake CMakeCache.txt
+::FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType%
+::msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% PACKAGE.vcxproj
+
+%cmakeBin% -G"MinGW Makefiles" -H%sourcepath% -B%binpath% >> %LogFolder%\dlls_cmake.log 2>&1
+%cmakeBin% -D CMAKE_BUILD_TYPE:STRING=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath% CMakeCache.txt >> %LogFolder%\dlls_cmake.log 2>&1
+%cmakeBin% -D CREA_LIBRARY_DLL_PATH:PATH=%thirdpartydllspath% CMakeCache.txt >> %LogFolder%\dlls_cmake.log 2>&1
+mingw32-make.exe package >> %LogFolder%\dlls_cmake.log 2>&1
+
+move /Y *.exe ..\..\..\..\
+
+exit /B
\ No newline at end of file
--- /dev/null
+
+
+echo thirdpartyGeneration=%thirdpartyGeneration%
+echo buildType=%buildType%
+echo wxStable=%wxStable%
+
+echo -----------------------------------
+echo ---End Setting Global Variables----
+echo -----------------------------------
+
+echo -----------------------------------
+echo -------Calling Scripts-------------
+echo -----------------------------------
+
+echo starting time
+time /t
+date /T
+
+set scripts=%cd%\scripts
+set LogFolder=%thirdpartyGeneration%\installLog
+
+
+if %EEDclean%==FALSE GOTO SKIPCLEAN
+cd %scripts%
+echo cleaning All
+call cleanAll.bat %thirdpartyGeneration%
+:SKIPCLEAN
+
+
+if %EEDdownload%==FALSE GOTO SKIPDOWNLOAD
+cd %scripts%
+echo Calling download_ThirdPartySW.bat
+call download_ThirdPartySW.bat %thirdpartyGeneration% %buildType% %wxStable% >> %LogFolder%\downloadSources.log 2>&1
+:SKIPDOWNLOAD
+
+
+if %EEDinstall%==FALSE GOTO SKIPINSTALL
+cd %scripts%
+echo Calling install_thirdparty.bat
+call install_thirdparty_all.bat %thirdpartyGeneration% %buildType% %forcex86%
+:SKIPINSTALL
+
+if %EEDinstallerDLL%==FALSE GOTO SKIPINSTALLERDLL
+echo Calling generateThirdPartydllsExe.bat
+cd %scripts%
+call generateThirdPartydllsExe.bat %thirdpartyGeneration% %buildType% %forcex86%
+:SKIPINSTALLERDLL
+
+
+:: if %EEDinstallerLibraries%==FALSE GOTO SKIPINSTALLERLIBRARIES
+:: echo Calling generateThirdPartyLibExe.bat
+:: cd %scripts%
+:: call generateThirdPartyLibExe.bat %thirdpartyGeneration% %buildType% %forcex86%
+:: :SKIPINSTALLERLIBRARIES
+
+
+cd..
+
+echo -----------------------------------
+echo -------End of the Script-----------
+echo -----------------------------------
+
+echo ending time
+time /t
+date /T
--- /dev/null
+
+set EEDclean=TRUE
+set EEDcleanSOURCES=TRUE
+set EEDcleanBIN=TRUE
+set EEDcleanINSTALL=TRUE
+set EEDcleanLOGS=TRUE
+
+set EEDdownload=TRUE
+set EEDdownloadQT=FALSE
+set EEDdownloadWXWINDOWS=TRUE
+set EEDdownloadBOOST=TRUE
+set EEDdownloadVTK=TRUE
+set EEDdownloadGDCM=TRUE
+set EEDdownloadITK=TRUE
+set EEDdownloadXERCES=TRUE
+set EEDdownloadSQLite=TRUE
+set EEDdownloadDLFCN=TRUE
+set EEDdownloadTTH=TRUE
+set EEDdownloadOPENGLMESA=TRUE
+
+set EEDinstall=TRUE
+set EEDinstallQT=FALSE
+set EEDinstallWXWIDGETS=TRUE
+set EEDinstallBOOST=TRUE
+set EEEDinstallVTK=TRUE
+set EEDinstallGDCM=TRUE
+set EEDinstallITK=TRUE
+set EEDinstallXERCES=TRUE
+set EEDinstallSQLite=TRUE
+set EEDinstallDLFCN=TRUE
+
+set EEDinstallerDLL=TRUE
+::set EEDinstallerLibraries=FALSE
--- /dev/null
+============================= Third Part Library ==========================
+
+1. Install from /home/davila/public_html/creatools_back_site/crea_Developer_Tools/v4
+ - mingw-64 V7.3 Version x86_64
+ Add int the sytem PATH:
+ <..InstalationPath..>\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin
+ - cmake 2.8.12 >=
+ - wget
+ - basic-miktex-2.9.6753-x64.exe
+ - nsis-3.03-setup.exe
+
+ - 7z
+
+ - git Install Options
+ -No GUI
+ -Git from commandline Recommended
+ -OpenSSL
+ -Use Windows console
+ - git (ssh-agent ssh-add) configuration :
+ Move the scripts/bashrc to .bashrc in Windows-User-Home
+
+ - key ssh: copy the id_rsa version 2 in <Users>\.ssh (see mail ups rsa 2)
+
+2. Clone creaToolsTools
+ -Cambiar la branch (mingw64)
+ -En creaToolsTools\Install_mingw64\Install_ThirdParty\install_All.bat ajustar el path de:
+ cmakeBin
+ thirdpartyGenerationBase
+ wget
+ zipPath
+ -En creaToolsTools\Install_mingw64\Install_ThirdParty\scripts\tpl_variables.bat
+ - Verificar que es TRUE y FALSE
+
+3.
+Compile Third Party Library (tpl)
+ install-All.bat
+
+::Nota, correr todo para bajar los fuentes, el ( unzip 7z ) no lo enuentra en la segunda corrida cuando se quite la
+opcion de clean y download se renombran los source automatidacmente (OJO con wxWindgets, hay que hacerlo a mano)
+
+
+============================= Creatools ==========================
+
+0. Configuration
+ -Instalar basic-miktex-2.9.6753-x64.exe
+ -plink: configurar en creaToolsTools\Install_mingw64\Install_CreaTools/creatools.bat
+ A. set GIT_SSH=C:\Program Files\PuTTY\plink.exe
+ or comment this line.
+ B. set bash=C:\Program Files\Git\bin\bash.exe
+ -ssh: Exportar la llave generada en linux en formato ppk. cargar la llave con pagent. (doble click en el archivo ppk)
+
+1. Install crea_TPdlls--4.1.0-win64.exe
+
+2. creatools.bat
+ Configurar el directorio de salida
+
+3. ??????????
+ scripts/gitcall.bat
+ configurar bien la variable, que depende donde esta instalado git
+ set bash=C:\Program Files\Git\bin\bash.exe
+
#!/bin/bash -e
-
-#This code is Mac
-function EEDreadlink() {
- DIR="${1%/*}"
- (cd "$DIR" && echo "$(pwd -P)")
-}
+# <<<<<<< HEAD
+#
+# #This code is for Mac
+# function EEDreadlink() {
+# DIR="${1%/*}"
+# (cd "$DIR" && echo "$(pwd -P)")
+# }
+#
+#
+# #EED 2120-08-25 This code is not working in MacOS so we use EEDreadlink()
+# #EED scriptDirName=$(dirname $(Ereadlink -f $0) )
+# scriptDirName=$(dirname $(Ereadlink $0) )/Linux
+# =======
+# #EED 2018-08-26
+#
+# #scriptDirName=$(dirname $(readlink -f $0) )
+# scriptDirName=$(pwd)
+# >>>>>>> origin/vtk8itk5wx3-mingw64
+ scriptDirName=$(pwd)
-#EED 2120-08-25 This code is not working in MacOS so we use EEDreadlink()
-#EED scriptDirName=$(dirname $(Ereadlink -f $0) )
-scriptDirName=$(dirname $(Ereadlink $0) )/Linux
-
#########################################################################
############ Local Functions #######################################
#########################################################################
+echo scriptDirName $scriptDirName
+
+
+
+
source scripts/LocalFunctions.sh
configureFile="scripts/CreaTools-configure.sh"
docgeneration=OFF
sourcesFrom=GIT
+
loginUserName=$USER
loginGroupName=`groups | awk '{print $1}'`
buildType=Release
gdcmVersion=GDCM1
-ITKVersion=ITK3
+ITKVersion=ITK4
export ETC_BASHRC=`getbashrc`
TDx=OFF
# itk
if [ `checkVal $command all 3rd 3rd-itk` == true ] ; then
- bigDisplay "INSTALL $ITKVersion"
- bash scripts/ThirdParty-install-ITK.sh
+ bigDisplay "INSTALL $ITKVersion"
+ bash scripts/ThirdParty-install-ITK.sh
cd $scriptDirName
fi
--- /dev/null
+#!/bin/bash
+
+#File generated by 'installscript'
+#DO NOT edit !
+#(except if you *do* know what you do)
+
+OperatingSystem=MacOS
+corenumber=8
+generationdir=/Users/davila/Creatis/C11
+installPrefix=/Users/davila/Creatis/C11/ci
+installPrefixThird=/Users/davila/Creatis/C11/tpli
+docgeneration=OFF
+sourcesFrom=GIT
+loginUserName=davila
+loginGroupName=staff
+buildType=Release
+gdcmVersion=GDCM1
+ITKVersion=ITK4
+ETC_BASHRC=/Users/davila/.bashrc
+TDx=ON
-# ---------------------------------------------------------------------
-#
-# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
-# pour la Santé)
-# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
-#
-# This software is governed by the CeCILL-B license under French law and
-# abiding by the rules of distribution of free software. You can use,
-# modify and/ or redistribute the software under the terms of the CeCILL-B
-# license as circulated by CEA, CNRS and INRIA at the following URL
-# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-# or in the file LICENSE.txt.
-#
-# As a counterpart to the access to the source code and rights to copy,
-# modify and redistribute granted by the license, users are provided only
-# with a limited warranty and the software's author, the holder of the
-# economic rights, and the successive licensors have only limited
-# liability.
-#
-# The fact that you are presently reading this means that you have had
-# knowledge of the CeCILL-B license and that you accept its terms.
-# ------------------------------------------------------------------------
-#!/bin/bash -e
-###########################################
-function getDistrib {
- local OS=`uname`
- if [ "$OS" == Darwin ] ; then OS=MacOS;
-##EED2016-10-15
-## elif [ "$OS" == Linux ] ; then OS=$(lsb_release -i | awk '{print $3}')
- elif [ "$OS" == Linux ] ; then OS=`awk 'NR==1{print $1}' /etc/system-release`
-
- else OS=""
- fi
-# checkDistrib $OS
- echo $OS
-}
-
-
-OperatingSystem=`getDistrib`
-
- case "$OperatingSystem" in
- Mandriva)
- echo Root password:
- su -c "urpmi aria2"
- downloadCommand=aria2c
- ;;
- Fedora)
- echo Root password:
- su -c "yum install aria2 -y"
- downloadCommand=aria2c
- ;;
- Ubuntu)
- echo Root password:
- su -c "apt-get --yes install wget"
- downloadCommand=wget
- ;;
- MacOS)
- port install curl -y
- downloadCommand=curl
- ;;
- *)
- echo " '$OperatingSystem' : Unknown (for us...) Operating Sytem "
- echo " Allowed values are (right now) Fedora, Ubuntu, MacOS "
-// exit 0
- ;;
- esac
-
-CREATOOLSBINDIR=Creatools-Bin
-rm -rf $CREATOOLSBINDIR
-mkdir $CREATOOLSBINDIR
-cd $CREATOOLSBINDIR
-$downloadCommand http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/creatools-Linux-Bin.sh
-source creatools-Linux-Bin.sh
-cd ..
+if [ "$#" -ne 1 ]; then
+ echo " Help: Install-Creatools-Bin.sh [pkg-dev|FinalUser]"
+ echo
+else
+ CREATOOLSBINDIR=Creatools-Bin
+ rm -rf $CREATOOLSBINDIR
+ mkdir $CREATOOLSBINDIR
+ cd $CREATOOLSBINDIR
+ $downloadCommand http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/creatools-Linux-Bin.sh
+ if [ "$1" = "pkg-dev" ]; then
+ echo "Installing creaTools pkg-dev ..."
+ source creatools-Linux-Bin.sh
+ elif [ "$1" = "FinalUser" ]; then
+ echo "Installing creaTools FinalUser ..."
+ source creatools-Linux-Bin.sh FinalUser
+ else
+ echo "Error. Input parameter"
+ fi
+ cd ..
+fi
--- /dev/null
+# ---------------------------------------------------------------------
+#
+# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+# pour la Santé)
+# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+#
+# This software is governed by the CeCILL-B license under French law and
+# abiding by the rules of distribution of free software. You can use,
+# modify and/ or redistribute the software under the terms of the CeCILL-B
+# license as circulated by CEA, CNRS and INRIA at the following URL
+# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+# or in the file LICENSE.txt.
+#
+# As a counterpart to the access to the source code and rights to copy,
+# modify and redistribute granted by the license, users are provided only
+# with a limited warranty and the software's author, the holder of the
+# economic rights, and the successive licensors have only limited
+# liability.
+#
+# The fact that you are presently reading this means that you have had
+# knowledge of the CeCILL-B license and that you accept its terms.
+# ------------------------------------------------------------------------
+
+#!/bin/bash -e
+
+###########################################
+function getDistrib {
+ local OS=`uname`
+
+ if [ "$OS" == Darwin ] ; then OS=MacOS;
+##EED2016-10-15
+## elif [ "$OS" == Linux ] ; then OS=$(lsb_release -i | awk '{print $3}')
+ elif [ "$OS" == Linux ] ; then
+ OS=`awk 'NR==1{print $1}' /etc/system-release`
+ if [ "$OS" == "" ] ; then
+ OS=$(lsb_release -i | awk '{print $3}')
+ fi
+ else OS=""
+ fi
+# checkDistrib $OS
+ echo $OS
+}
+
+
+OperatingSystem=`getDistrib`
+
+echo
+echo
+echo $OperatingSystem
+echo
+ case "$OperatingSystem" in
+ Mandriva)
+ ARIA2EXIST=$(rpm -qa | grep aria2 | wc -l)
+ if [ "$ARIA2EXIST" = "0" ]; then
+ echo "Install aria2 (download tool) Root password:"
+ su -c "urpmi aria2"
+ fi
+ downloadCommand=aria2c
+ ;;
+ Fedora)
+ ARIA2EXIST=$(rpm -qa | grep aria2 | wc -l)
+ if [ "$ARIA2EXIST" = "0" ]; then
+ echo "Install aria2 (download tool) Root password:"
+ su -c "dnf install aria2 -y"
+ fi
+ downloadCommand=aria2c
+ ;;
+ Debian)
+ WGETEXIST=$(dpkg -l | grep wget | wc -l)
+ if [ "$WGETEXIST" = "0" ]; then
+ echo "Install wget (download tool) Root password:"
+ su -c "apt-get --yes install wget "
+ fi
+ downloadCommand=wget
+ ;;
+ Ubuntu)
+ WGETEXIST=$(dpkg -l | grep wget | wc -l)
+ if [ "$WGETEXIST" = "0" ]; then
+ echo "Install wget (download tool) Root password:"
+ su -c "apt-get --yes install wget"
+ fi
+ downloadCommand=wget
+ ;;
+ MacOS)
+ port install curl -y
+ downloadCommand=curl
+ ;;
+ *)
+ echo " '$OperatingSystem' : Unknown (for us...) Operating Sytem "
+ echo " Allowed values are (right now) Fedora, Ubuntu, MacOS "
+// exit 0
+ ;;
+ esac
+
+
###########################################
function checkDistrib {
local OS=$1
- if [ "`checkVal $OS MacOS Fedora Ubuntu Mandriva CentOS`" == "false" ] ; then
+ if [ "`checkVal $OS MacOS Fedora Ubuntu Mandriva CentOS Debian`" == "false" ] ; then
echo "Operating System not supported: $OS"
echo "Currently supported system: Fedora Ubuntu MacOS"
exit 1
elif [ "$DISTRIB" == Fedora ] ; then OSVersion=`awk 'NR==1{print $3}' /etc/system-release`
elif [ "$DISTRIB" == Ubuntu ] ; then OSVersion=`awk 'NR==1{print $2}' /etc/issue`
elif [ "$DISTRIB" == CentOS ] ; then OSVersion=`awk 'NR==1{print $3}' /etc/issue`
+ elif [ "$DISTRIB" == Debian ] ; then OSVersion=`awk 'NR==1{print $3}' /etc/issue`
else OSVersion="VOID_EED"
fi
echo $OSVersion
elif [ "$DISTRIB" == Fedora ] ; then KernelVersion=$(uname -a | awk '{print $3}')
elif [ "$DISTRIB" == Ubuntu ] ; then KernelVersion=$(uname -a | awk '{print $3}')
elif [ "$DISTRIB" == CentOS ] ; then KernelVersion=$(uname -a | awk '{print $3}')
+ elif [ "$DISTRIB" == Debian ] ; then KernelVersion=$(uname -a | awk '{print $3}')
else KernelVersion="VOID_EED"
fi
echo $KernelVersion
elif [ "$DISTRIB" == Fedora ] ; then downloadCommand='aria2c -x 16'
elif [ "$DISTRIB" == CentOs ] ; then downloadCommand='aria2c -x 16'
elif [ "$DISTRIB" == Ubuntu ] ; then downloadCommand=wget
+ elif [ "$DISTRIB" == Debian ] ; then downloadCommand=wget
else downloadCommand="VOID_EED"
fi
echo $downloadCommand
--- /dev/null
+# ---------------------------------------------------------------------
+#
+# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+# pour la Santé)
+# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+#
+# This software is governed by the CeCILL-B license under French law and
+# abiding by the rules of distribution of free software. You can use,
+# modify and/ or redistribute the software under the terms of the CeCILL-B
+# license as circulated by CEA, CNRS and INRIA at the following URL
+# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+# or in the file LICENSE.txt.
+#
+# As a counterpart to the access to the source code and rights to copy,
+# modify and redistribute granted by the license, users are provided only
+# with a limited warranty and the software's author, the holder of the
+# economic rights, and the successive licensors have only limited
+# liability.
+#
+# The fact that you are presently reading this means that you have had
+# knowledge of the CeCILL-B license and that you accept its terms.
+# ------------------------------------------------------------------------
+
+
+#!/bin/bash
+
+echo "---TPLaux-bashrc.sh---"
+echo $ETC_BASHRC
+echo "installPrefixTPLaux: " $installPrefixTPLaux
+
+# Cleanning line in .bashrc file
+sed -i -e '/.*installPrefixTPLaux*/ d' $ETC_BASHRC
+sed -i -e '/.*creatools_TPLaux_config.*/ d' $ETC_BASHRC
+
+echo "====================================================ETC_BASHRC " $ETC_BASHRC
+echo installPrefixTPLaux=$installPrefixTPLaux >> $ETC_BASHRC
+echo '[ -f "$installPrefixTPLaux/share/creatools/creatools_TPLaux_config.sh" ] && source $installPrefixTPLaux/share/creatools/creatools_TPLaux_config.sh $installPrefixTPLaux' >> $ETC_BASHRC
+
bash ThirdParty-install-Base-rpm.sh $OperatingSystem
else
# must log as root
- echo "Please enter the root passwd to add necessary packages:";
+ echo "Creatools need to install some RPM pakages. Please enter the root passwd :";
if [ "Ubuntu" == $OperatingSystem ] ; then
sudo bash ThirdParty-install-Base-rpm.sh $OperatingSystem
elif [ "MacOS" == $OperatingSystem ] ; then
yum install mesa-libOSMesa-devel -y
yum install gcc -y
yum install gcc-c++ -y
+ yum install make -y
yum install redhat-rpm-config -y
yum install xerces-c-devel -y
yum install git -y
apt-get --yes install graphviz
apt-get --yes install texlive
apt-get --yes install latex2html
- apt-get --yes install libgtk2.0-dev #GTK
- apt-get --yes install libwxgtk2.8-dev #Wx GTK
- apt-get --yes install libwxbase2.8-dev #Wx solito
+
+# apt-get --yes install libgtk2.0-dev #GTK
+ apt-get --yes install libgtk-3-dev #GTK
+# apt-get --yes install libwxgtk2.8-dev #Wx GTK
+ apt-get --yes install libwxgtk3.0-dev #Wx GTK
+# apt-get --yes install libwxbase2.8-dev #Wx solito
+ apt-get --yes install libwxbase3.0-dev #Wx solito
apt-get --yes install wx-common #wxrc
+
apt-get --yes install libboost-dev #Boost
apt-get --yes install libboost-all-dev #Boost
apt-get --yes install libqt4-dev #QT4
port -N install libomp -y
# port -f activate libomp -y
port -f activate libomp-devel -y
+
port -N install wget -y
port -N install cmake -y
port -N install doxygen -y
# fi
cmake -D Module_ITKReview:BOOL=ON CMakeCache.txt
+# cmake -D ITKV4_COMPATIBILITY:BOOL=ON CMakeCache.txt
cmake -D CMAKE_CXX_FLAGS:STRING=-std=${stdCompiler} CMakeCache.txt
#uncomment following line if you want to use the bleeding edge of GDCM2!
if [ `getDistrib` == "CentOS" ] && [ `getKernelVersion` < "2.6.34" ]
then
stdCompiler=c++98
- else
- stdCompiler=c++03
+# else
+# stdCompiler=c++03
fi
-
scriptDir=$PWD
sourcesDir=$generationdir/thirdparty_sources
binDir=$generationdir/thirdparty_bin
## wget https://www.vtk.org/files/release/8.2/VTK-8.2.0.zip
## unzip VTK-8.2.0.zip
- wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/VTK-8.2.0-Patch.zip
- unzip VTK-8.2.0-Patch.zip
+
+cxxFlags=' '
+if [ $TDx == "ON" ]
+then
+ cxxFlags=$cxxFlags'-F/Library/Frameworks -DVTK_USE_TDX '
+ libname=VTK-8.2.0-Patch-TDx
+else
+ libname=VTK-8.2.0-Patch
+fi
+
+wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/$libname.zip
+unzip $libname.zip
+
+
+
+
+
+
#if [ $buildType = "Debug" ]
#then
#if [ true = false ]
if [ true = true ]
then
- libname=VTK-8.2.0-Patch
libnameB=vtk-8.2
dirInstall=$binDir/$libname-Bin
## export VTK_DIR=$installPrefixThird/lib/vtk-5.6/
cd $dirInstall
# See EED why we have to do this
- if [ $OperatingSystem = "MacOS" ]
- then
- cmake -D CMAKE_CXX_COMPILER:FILE=/usr/bin/g++
- echo
- fi
+# if [ $OperatingSystem = "MacOS" ]
+# then
+# cmake -D CMAKE_CXX_COMPILER:FILE=/usr/bin/g++
+# echo
+# fi
cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
+
+ cmake -D CMAKE_CXX_FLAGS:STRING="$cxxFlags" CMakeCache.txt
cmake -D CMAKE_BUILD_TYPE:STRING=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt
if [ $OperatingSystem = "MacOS" ]
echo
fi
- cmake -D VTK_Group_Views:BOOL=ON -D VTK_Group_Qt:BOOL=ON CMakeCache.txt
+ cmake -D VTK_Group_Views:BOOL=ON -D VTK_Group_Qt:BOOL=OFF CMakeCache.txt
cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON CMakeCache.txt
- cmake -D VTK_Group_Views:BOOL=ON -D VTK_Group_Qt:BOOL=OFF CMakeCache.txt
- cmake -D CMAKE_INSTALL_LIBDIR:STRING="lib" CMakeCache.txt
+ cmake -D CMAKE_INSTALL_LIBDIR:STRING="lib" CMakeCache.txt
make -j $corenumber
make -j $corenumber install
fi
source $PWD/scripts/CreaTools-configure.sh
+
#EED 2021-11-15
source $PWD/scripts/LocalFunctions.sh
if [ `getDistrib` == "CentOS" ] && [ `getKernelVersion` < "2.6.34" ]
## # tar -xvzf gdcm13_2018_05_28_vtk8.tar.gz
## fi
+
+cxxFlags=' '
+if [ $TDx == "ON" ]
+then
+ cxxFlags=$cxxFlags'-F/Library/Frameworks -DVTK_USE_TDX '
+fi
+
+
wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/gdcm13_2019_06_17_vtk8.zip
unzip gdcm13_2019_06_17_vtk8.zip
-# mv gdcm13_2018_05_28_vtk8 gdcm
-
if [ $buildType = "Debug" ]
then
debug="ON"
cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
+ cmake -D CMAKE_CXX_FLAGS:STRING="$cxxFlags" CMakeCache.txt
cmake -D CMAKE_BUILD_TYPE:STRING=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt
cmake -D VTK_DIR:PATH=$VTK_DIR CMakeCache.txt
cmake -D GDCM_VTK:BOOL=ON -D GDCM_NAME_SPACE:STRING=gdcm13 CMakeCache.txt
- cmake -D CMAKE_CXX_FLAGS:STRING=-std=${stdCompiler} CMakeCache.txt
+
+ #EED 2017-03-24
+ source $PWD/scripts/LocalFunctions.sh
+ if [ `getDistrib` == "CentOS" ] && [ `getKernelVersion` < "2.6.34" ]
+ then
+ cmake -D CMAKE_CXX_FLAGS:STRING=-std=c++98 CMakeCache.txt
+ fi
+
make -j $corenumber
make -j $corenumber install
cd ..
--- /dev/null
+# ---------------------------------------------------------------------
+#
+# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+# pour la Santé)
+# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+#
+# This software is governed by the CeCILL-B license under French law and
+# abiding by the rules of distribution of free software. You can use,
+# modify and/ or redistribute the software under the terms of the CeCILL-B
+# license as circulated by CEA, CNRS and INRIA at the following URL
+# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+# or in the file LICENSE.txt.
+#
+# As a counterpart to the access to the source code and rights to copy,
+# modify and redistribute granted by the license, users are provided only
+# with a limited warranty and the software's author, the holder of the
+# economic rights, and the successive licensors have only limited
+# liability.
+#
+# The fact that you are presently reading this means that you have had
+# knowledge of the CeCILL-B license and that you accept its terms.
+# ------------------------------------------------------------------------
+
+
+#!/bin/bash
+
+ if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
+ then
+ echo
+ echo "..ERROR.."
+ echo "==================================================="
+ echo "REMEMBER !"
+ echo ""
+ echo "YOU NEED TO RUN 'Configure' (0) First !"
+ echo "==================================================="
+ echo
+ echo
+ exit 0
+fi
+
+source $PWD/scripts/CreaTools-configure.sh
+#EED 2017-03-24
+ source $PWD/scripts/LocalFunctions.sh
+ if [ `getDistrib` == "CentOS" ] && [ `getKernelVersion` < "2.6.34" ]
+ then
+ stdCompiler=c++98
+ else
+ stdCompiler=c++03
+ fi
+
+
+ echo "------"
+ echo $PWD/scripts/CreaTools-configure.sh
+ echo --generationdir--
+ echo $generationdir
+ echo --docgeneration--
+ echo $docgeneration
+ echo --installPrefix--
+ echo $installPrefix
+ echo --installPrefixThird--
+ echo $installPrefixThird
+ echo --buildType--
+ echo $buildType
+ echo --gdcmVersion--
+ echo $gdcmVersion
+# echo --sourcesFrom--
+# echo $sourcesFrom
+# echo --scriptDir--
+# echo $scriptDir
+# echo --start_point--
+# echo $start_point
+ echo "------"
+
+
+scriptDir=$PWD
+sourcesDir=$generationdir/thirdparty_sources
+binDir=$generationdir/thirdparty_bin
+
+if [ ! -e $generationdir ]
+then
+ mkdir -p $generationdir
+ chown -R $loginUserName $generationdir
+ chgrp -R $loginGroupName $generationdir
+
+fi
+if [ ! -e $sourcesDir ]
+then
+ mkdir -p $sourcesDir
+ #was : (pb on MacOS?)
+ #chown -R $loginUserName:$loginGroupName $sourcesDir
+ chown -R $loginUserName $sourcesDir
+ chgrp -R $loginGroupName $sourcesDir
+fi
+
+if [ ! -e $binDir ]
+then
+ mkdir -p $binDir
+ chown -R $loginUserName $binDir
+ chgrp -R $loginGroupName $binDir
+fi
+
+ echo "we remove old stuff"
+ rm -rf $sourcesDir/gdcm*
+ rm -rf $binDir/gdcm*
+
+ cd $sourcesDir
+
+ echo "we download new stuff"
+ if [ $OperatingSystem = "MacOS" ]
+ then
+ curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
+ # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-(
+ tar -xvf gdcm_05_Mai_2011.tar.gz
+ else
+##19mai2015
+# wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
+#EED 2017-08-29 itk3toitk4
+# wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
+# tar -xvzf gdcm_05_Mai_2011.tar.gz
+
+ wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/gdcm-2.8.2.tar.gz
+ tar -xvzf gdcm-2.8.2.tar.gz
+
+ fi
+
+if [ $buildType = "Debug" ]
+then
+ debug="ON"
+else
+ debug="OFF"
+fi
+
+# the following stupid test is used at debug time; Please don't remove!
+#if [ true = false ]
+if [ true = true ]
+then
+ libname=gdcm-2.8.2
+ dirInstall=$binDir/$libname-Bin
+ export GDCM_DIR=$installPrefixThird/lib/gdcm/
+ mkdir -p $dirInstall
+ cd $dirInstall
+
+ cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
+ ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
+
+ cmake -D CMAKE_BUILD_TYPE:STRING=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt
+ cmake -D VTK_DIR:PATH=$VTK_DIR CMakeCache.txt
+ cmake -D GDCM_USE_VTK:BOOL=ON CMakeCache.txt
+ cmake -D CMAKE_CXX_FLAGS:STRING=-std=${stdCompiler} CMakeCache.txt
+
+ make -j $corenumber
+ make -j $corenumber install
+ cd ..
+fi
+
+#if [ true = false ]
+if [ true = true ]
+then
+ cd $sourcesDir
+ cp tth $installPrefixThird/bin
+fi
+
+
+# deal with create creatools_third_party_libraries_config.sh
+# is now done in ThirdParty-install-Finalize.sh
+
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
TDx=$4
if [[ "$OSTYPE" == "linux-gnu" ]]; then
cxxFlags='-fPIC '
+elif [[ "$OSTYPE" == "darwin" ]]; then
+ cxxFlags='-fPIC -ObjC++C'
fi
TDx=$4
fi
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
cxxFlags=$cxxFlags'-F/Library/Frameworks '
fi
-
cmake -D CMAKE_CXX_FLAGS:STRING="$cxxFlags" CMakeCache.txt
cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt
cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt