From bfd50d81b1a0115d5de2ceb5c083a47bee67005a Mon Sep 17 00:00:00 2001 From: Diego Caceres Date: Thu, 12 Jul 2012 14:20:20 +0000 Subject: [PATCH] DFCH: creaTools script for visual studio 2010 x64 working!!! =) --- Install/Readme.txt | 11 +- Install/creatools.bat_TEMPLATE | 3 + Install/scripts/All.bat | 175 ++++-------------- Install/scripts/base/cleangeneral.bat | 17 ++ Install/scripts/base/cleanmod.bat | 24 +++ Install/scripts/base/cmakemod.bat | 38 ++++ Install/scripts/base/compilemod.bat | 39 ++++ Install/scripts/base/ctestmod.bat | 24 +++ Install/scripts/base/cvscheckout.bat | 14 ++ Install/scripts/base/downloadSources.bat | 69 +++++++ Install/scripts/bbtk/bbtkInstall.bat | 58 ++++++ Install/scripts/bbtk/bbtkVariables.bat | 16 ++ .../bbtkGEditor/bbtkGEditorInstall.bat | 59 ++++++ .../bbtkGEditor/bbtkGEditorVariables.bat | 15 ++ Install/scripts/crea/creaInstall.bat | 60 ++++++ Install/scripts/crea/creaVariables.bat | 19 ++ .../scripts/creaBruker/creaBrukerInstall.bat | 60 ++++++ .../creaBruker/creaBrukerVariables.bat | 15 ++ .../creaContours/creaContoursInstall.bat | 59 ++++++ .../creaContours/creaContoursVariables.bat | 19 ++ .../creaEnvironmentInstall.bat | 59 ++++++ .../creaenvironmentVariables.bat | 15 ++ .../creaImageIO/creaImageIOInstall.bat | 59 ++++++ .../creaImageIO/creaImageIOVariables.bat | 18 ++ .../creaMaracasVisu/creaMaracasVariables.bat | 18 ++ .../creaMaracasVisuInstall.bat | 59 ++++++ .../creaRigidRInstall.bat | 59 ++++++ .../creaRigidRegistrationVariables.bat | 19 ++ .../scripts/creaTools/compilemodCreaTools.bat | 33 ++++ .../creaTools/creaMiniToolsVariables.bat | 23 +++ .../creaTools/creaMinitoolsInstall.bat | 59 ++++++ .../scripts/creaTools/creaToolsInstall.bat | 59 ++++++ .../scripts/creaTools/creaToolsVariables.bat | 13 ++ 33 files changed, 1138 insertions(+), 149 deletions(-) create mode 100644 Install/scripts/base/cleangeneral.bat create mode 100644 Install/scripts/base/cleanmod.bat create mode 100644 Install/scripts/base/cmakemod.bat create mode 100644 Install/scripts/base/compilemod.bat create mode 100644 Install/scripts/base/ctestmod.bat create mode 100644 Install/scripts/base/cvscheckout.bat create mode 100644 Install/scripts/base/downloadSources.bat create mode 100644 Install/scripts/bbtk/bbtkInstall.bat create mode 100644 Install/scripts/bbtk/bbtkVariables.bat create mode 100644 Install/scripts/bbtkGEditor/bbtkGEditorInstall.bat create mode 100644 Install/scripts/bbtkGEditor/bbtkGEditorVariables.bat create mode 100644 Install/scripts/crea/creaInstall.bat create mode 100644 Install/scripts/crea/creaVariables.bat create mode 100644 Install/scripts/creaBruker/creaBrukerInstall.bat create mode 100644 Install/scripts/creaBruker/creaBrukerVariables.bat create mode 100644 Install/scripts/creaContours/creaContoursInstall.bat create mode 100644 Install/scripts/creaContours/creaContoursVariables.bat create mode 100644 Install/scripts/creaEnvironment/creaEnvironmentInstall.bat create mode 100644 Install/scripts/creaEnvironment/creaenvironmentVariables.bat create mode 100644 Install/scripts/creaImageIO/creaImageIOInstall.bat create mode 100644 Install/scripts/creaImageIO/creaImageIOVariables.bat create mode 100644 Install/scripts/creaMaracasVisu/creaMaracasVariables.bat create mode 100644 Install/scripts/creaMaracasVisu/creaMaracasVisuInstall.bat create mode 100644 Install/scripts/creaRigidRegistration/creaRigidRInstall.bat create mode 100644 Install/scripts/creaRigidRegistration/creaRigidRegistrationVariables.bat create mode 100644 Install/scripts/creaTools/compilemodCreaTools.bat create mode 100644 Install/scripts/creaTools/creaMiniToolsVariables.bat create mode 100644 Install/scripts/creaTools/creaMinitoolsInstall.bat create mode 100644 Install/scripts/creaTools/creaToolsInstall.bat create mode 100644 Install/scripts/creaTools/creaToolsVariables.bat diff --git a/Install/Readme.txt b/Install/Readme.txt index d092c60..5fb0e57 100644 --- a/Install/Readme.txt +++ b/Install/Readme.txt @@ -1,16 +1,8 @@ Read the file CreaToolsTools/README.txt - - - - - - //========= the following lines are let here as remainder; Forget them!===== - - Requirements Donwload and install crea_Developers_tools, crea_ThirdParty_dlls, crea_ThirdParty_Libraries and VisualStudioExpress2008 @@ -30,9 +22,10 @@ All the creatools projects are downloaded from the CVS, compiled and the CTest f Install visualStudio + doxygen + MikTex Putty Graphviz - doxygen TortoiseCVS NSIS cmake (outside of "Programs Files") diff --git a/Install/creatools.bat_TEMPLATE b/Install/creatools.bat_TEMPLATE index ca724dd..d9b4151 100644 --- a/Install/creatools.bat_TEMPLATE +++ b/Install/creatools.bat_TEMPLATE @@ -1,3 +1,4 @@ +@echo off set creatoolsGeneration= set installPrefix=%creatoolsGeneration%\creatools_install set buildType= @@ -7,4 +8,6 @@ set docGeneration= let it to OFF! cd scripts call All.bat %creatoolsGeneration% %docGeneration% %cvsUser% %installPrefix% %buildType% cd .. +pause +exit diff --git a/Install/scripts/All.bat b/Install/scripts/All.bat index 8690acb..f372326 100644 --- a/Install/scripts/All.bat +++ b/Install/scripts/All.bat @@ -1,148 +1,43 @@ +@echo off - -rem @echo off set creatoolsGeneration=%1 set docgeneration=%2 set cvsUser=%3 set installPrefix=%4 set buildtype=%5 - -set creasource=crea -set bbtksource=bbtk -set creamaracassource=creaMaracasVisu -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 currentdir=%~dp0 -call %currentdir%\cleangeneral.bat %creatoolsGeneration% %installPrefix% - - -call %currentdir%\cvscheckout.bat %creasource% %cvsUser% %creatoolsGeneration% -call %currentdir%\cvscheckout.bat %bbtksource% %cvsUser% %creatoolsGeneration% -call %currentdir%\cvscheckout.bat %creamaracassource% %cvsUser% %creatoolsGeneration% -call %currentdir%\cvscheckout.bat %creaenvironmentsource% %cvsUser% %creatoolsGeneration% -call %currentdir%\cvscheckout.bat %creabrukersource% %cvsUser% %creatoolsGeneration% -call %currentdir%\cvscheckout.bat %creaimagesource% %cvsUser% %creatoolsGeneration% -call %currentdir%\cvscheckout.bat %creacontourssource% %cvsUser% %creatoolsGeneration% -call %currentdir%\cvscheckout.bat %crearigidregistrationssource% %cvsUser% %creatoolsGeneration% -call %currentdir%\cvscheckout.bat %bbtkgeditorsource% %cvsUser% %creatoolsGeneration% -call %currentdir%\cvscheckout.bat %creatoolssource% %cvsUser% %creatoolsGeneration% -call %currentdir%\cvscheckout.bat %creaminitoolssource% %cvsUser% %creatoolsGeneration% - -rem CREA -call %currentdir%\cleanmod.bat %creasource% %creatoolsGeneration% -call %currentdir%\cmakemod.bat %creasource% %installPrefix% %creatoolsGeneration% -call %currentdir%\creaVariables.bat %creatoolsGeneration% %creasource% %docgeneration% -call %currentdir%\compilemod.bat %buildtype% %creasource% %creatoolsGeneration% -call %currentdir%\ctestmod.bat %creasource% %creatoolsGeneration% -set creadll=%creatoolsGeneration%\creatools_bin\%creasource%Bin\%buildtype% -set PATH=%creadll%;%PATH% - -rem BBTK -call %currentdir%\cleanmod.bat %bbtksource% %creatoolsGeneration% -call %currentdir%\cmakemod.bat %bbtksource% %installPrefix% %creatoolsGeneration% -call %currentdir%\bbtkVariables.bat %creatoolsGeneration% %bbtksource% %docgeneration% -call %currentdir%\compilemod.bat %buildtype% %bbtksource% %creatoolsGeneration% -call %currentdir%\ctestmod.bat %bbtksource% %creatoolsGeneration% -set bbtkdll=%creatoolsGeneration%\creatools_bin\%bbtksource%Bin\%buildtype% -set PATH=%bbtkdll%;%PATH% - -rem creaMaracasVisu -call %currentdir%\cleanmod.bat %creamaracassource% %creatoolsGeneration% -call %currentdir%\cmakemod.bat %creamaracassource% %installPrefix% %creatoolsGeneration% -call %currentdir%\creaMaracasVariables.bat %creatoolsGeneration% %creamaracassource% %docgeneration% -call %currentdir%\compilemod.bat %buildtype% %creamaracassource% %creatoolsGeneration% -call %currentdir%\ctestmod.bat %creamaracassource% %creatoolsGeneration% -set creamaracasdll=%creatoolsGeneration%\creatools_bin\%creamaracassource%Bin\%buildtype% -set PATH=%creamaracasdll%;%PATH% - -rem creaEnvironment -call %currentdir%\cleanmod.bat %creaenvironmentsource% %creatoolsGeneration% -call %currentdir%\cmakemod.bat %creaenvironmentsource% %installPrefix% %creatoolsGeneration% -call %currentdir%\creaenvironmentVariables.bat %creatoolsGeneration% %creaenvironmentsource% %docgeneration% -call %currentdir%\compilemod.bat %buildtype% %creaenvironmentsource% %creatoolsGeneration% -call %currentdir%\ctestmod.bat %creaenvironmentsource% %creatoolsGeneration% -set creaenvironmentdll=%creatoolsGeneration%\creatools_bin\%creaenvironmentsource%Bin\%buildtype% -set PATH=%creaenvironmentdll%;%PATH% - -rem creaBruker -call %currentdir%\cleanmod.bat %creabrukersource% %creatoolsGeneration% -call %currentdir%\cmakemod.bat %creabrukersource% %installPrefix% %creatoolsGeneration% -call %currentdir%\creaBrukerVariables.bat %creatoolsGeneration% %creabrukersource% %docgeneration% -call %currentdir%\compilemod.bat %buildtype% %creabrukersource% %creatoolsGeneration% -call %currentdir%\ctestmod.bat %creabrukersource% %creatoolsGeneration% -set creabrukerdll=%creatoolsGeneration%\creatools_bin\%creabrukersource%Bin\%buildtype% -set PATH=%creabrukerdll%;%PATH% - -rem creaImageIO -call %currentdir%\cleanmod.bat %creaimagesource% %creatoolsGeneration% -call %currentdir%\cmakemod.bat %creaimagesource% %installPrefix% %creatoolsGeneration% -call %currentdir%\creaImageIOVariables.bat %creatoolsGeneration% %creaimagesource% %docgeneration% -call %currentdir%\compilemod.bat %buildtype% %creaimagesource% %creatoolsGeneration% -call %currentdir%\ctestmod.bat %creaimagesource% %creatoolsGeneration% -set creaimagedll=%creatoolsGeneration%\creatools_bin\%creaimagesource%Bin\%buildtype% -set PATH=%creaimagedll%;%PATH% - -rem creaContours -call %currentdir%\cleanmod.bat %creacontourssource% %creatoolsGeneration% -call %currentdir%\cmakemod.bat %creacontourssource% %installPrefix% %creatoolsGeneration% -call %currentdir%\creaContoursVariables.bat %creatoolsGeneration% %creacontourssource% %docgeneration% -call %currentdir%\compilemod.bat %buildtype% %creacontourssource% %creatoolsGeneration% -call %currentdir%\ctestmod.bat %creacontourssource% %creatoolsGeneration% -set creacontourdll=%creatoolsGeneration%\creatools_bin\%creacontourssource%Bin\%buildtype% -rem set PATH=%creacontoursdll%;%PATH% - -rem creaRigidRegistration -call %currentdir%\cleanmod.bat %crearigidregistrationssource% %creatoolsGeneration% -call %currentdir%\cmakemod.bat %crearigidregistrationssource% %installPrefix% %creatoolsGeneration% -call %currentdir%\creaRigidRegistrationVariables.bat %creatoolsGeneration% %crearigidregistrationssource% %docgeneration% -call %currentdir%\compilemod.bat %buildtype% %crearigidregistrationssource% %creatoolsGeneration% -call %currentdir%\ctestmod.bat %crearigidregistrationssource% %creatoolsGeneration% -set crearigidregistrationdll=%creatoolsGeneration%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype% -rem set PATH=%crearigidregistrationdll%;%PATH% - -rem bbtkGEditor -call %currentdir%\cleanmod.bat %bbtkgeditorsource% %creatoolsGeneration% -call %currentdir%\cmakemod.bat %bbtkgeditorsource% %installPrefix% %creatoolsGeneration% -call %currentdir%\bbtkGEditorVariables.bat %creatoolsGeneration% %bbtkgeditorsource% %docgeneration% -call %currentdir%\compilemod.bat %buildtype% %bbtkgeditorsource% %creatoolsGeneration% -call %currentdir%\ctestmod.bat %bbtkgeditorsource% %creatoolsGeneration% -set bbtkgeditordll=%creatoolsGeneration%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype% -rem set PATH=%bbtkgeditordll%;%PATH% - -rem creaMiniTools -call %currentdir%\cleanmod.bat %creaminitoolssource% %creatoolsGeneration% -call %currentdir%\cmakemod.bat %creaminitoolssource% %installPrefix% %creatoolsGeneration% -call %currentdir%\creaMiniToolsVariables.bat %creatoolsGeneration% %creaminitoolssource% %docgeneration% -call %currentdir%\compilemod.bat %buildtype% %creaminitoolssource% %creatoolsGeneration% -call %currentdir%\ctestmod.bat %creaminitoolssource% %creatoolsGeneration% -set creaminitoolsdll=%creatoolsGeneration%\creatools_bin\%creaminitoolssource%Bin\%buildtype% -rem set PATH=%creaminitoolsdll%;%PATH% - -rem THIS HAS TO BE THE LAST STEP... - -rem creaTools -call %currentdir%\cleanmod.bat %creatoolssource% %creatoolsGeneration% -call %currentdir%\cmakemod.bat %creatoolssource% %installPrefix% %creatoolsGeneration% -call %currentdir%\creaToolsVariables.bat %creatoolsGeneration% %creatoolssource% %docgeneration% -call %currentdir%\compilemodCreaTools.bat %buildtype% %creatoolssource% %creatoolsGeneration% -rem remcall ctestmod.bat %creatoolssource% %creatoolsGeneration% -set creatoolsdll=%creatoolsGeneration%\creatools_bin\%creatoolssource%Bin\%buildtype% -rem set PATH=%creatoolssdll%;%PATH% - -REM -REM -REM ...FIN...END... :) -REM -REM -pause -rem shutdown /s -exit /b +set currentFolder=%cd% +set logFolder=%currentFolder%\log +goto next +rmdir %logFolder% /s /q +mkdir %logFolder% + +echo call Download Sources +start /B /I /wait %currentFolder%\base\downloadSources.bat %creatoolsGeneration% %installPrefix% %cvsUser% %currentFolder% +echo call compile crea +start /B /I /wait %currentFolder%\crea\creaInstall.bat %creatoolsGeneration% %docgeneration% %cvsUser% %installPrefix% %buildtype% %currentFolder% +echo call compile bbtk +start /B /I /wait %currentFolder%\bbtk\bbtkInstall.bat %creatoolsGeneration% %docgeneration% %cvsUser% %installPrefix% %buildtype% %currentFolder% +echo call compile creaMaracasVisu +start /B /I /wait %currentFolder%\creaMaracasVisu\creaMaracasVisuInstall.bat %creatoolsGeneration% %docgeneration% %cvsUser% %installPrefix% %buildtype% %currentFolder% +echo call compile creaEnvironment +start /B /I /wait %currentFolder%\creaEnvironment\creaEnvironmentInstall.bat %creatoolsGeneration% %docgeneration% %cvsUser% %installPrefix% %buildtype% %currentFolder% +echo call compile creaBruker +start /B /I /wait %currentFolder%\creaBruker\creaBrukerInstall.bat %creatoolsGeneration% %docgeneration% %cvsUser% %installPrefix% %buildtype% %currentFolder% +echo call compile creaImageIO +start /B /I /wait %currentFolder%\creaImageIO\creaImageIOInstall.bat %creatoolsGeneration% %docgeneration% %cvsUser% %installPrefix% %buildtype% %currentFolder% +echo call compile creaContours +start /B /I /wait %currentFolder%\creaContours\creaContoursInstall.bat %creatoolsGeneration% %docgeneration% %cvsUser% %installPrefix% %buildtype% %currentFolder% +echo call compile creaRigidRegistration +start /B /I /wait %currentFolder%\creaRigidRegistration\creaRigidRInstall.bat %creatoolsGeneration% %docgeneration% %cvsUser% %installPrefix% %buildtype% %currentFolder% +echo call compile bbtkGEditor +start /B /I /wait %currentFolder%\bbtkGEditor\bbtkGEditorInstall.bat %creatoolsGeneration% %docgeneration% %cvsUser% %installPrefix% %buildtype% %currentFolder% +echo call compile creaMinitools +start /B /I /wait %currentFolder%\creaTools\creaMinitoolsInstall.bat %creatoolsGeneration% %docgeneration% %cvsUser% %installPrefix% %buildtype% %currentFolder% +echo THIS HAS TO BE THE LAST STEP... +echo call compile creaTools +:next +start /B /I /wait %currentFolder%\creaTools\creaToolsInstall.bat %creatoolsGeneration% %docgeneration% %cvsUser% %installPrefix% %buildtype% %currentFolder% + +exit /B diff --git a/Install/scripts/base/cleangeneral.bat b/Install/scripts/base/cleangeneral.bat new file mode 100644 index 0000000..1a87b72 --- /dev/null +++ b/Install/scripts/base/cleangeneral.bat @@ -0,0 +1,17 @@ +@echo off + +echo ---------------------------- +echo ----cleangeneral.bat-------- +echo ---------------------------- + +echo creatoolsGeneration=%1 +echo installPrefix=%2 + +rmdir %2 /s /q +rmdir %1\creatools_bin /s /q +rmdir %1\creatools_sources /s /q +rmdir %1\creatools_install /s /q +rmdir %1\Result_Installers /s /q +mkdir %1\Result_Installers + +exit /B \ No newline at end of file diff --git a/Install/scripts/base/cleanmod.bat b/Install/scripts/base/cleanmod.bat new file mode 100644 index 0000000..2b1b364 --- /dev/null +++ b/Install/scripts/base/cleanmod.bat @@ -0,0 +1,24 @@ +@echo off + +echo ---------------------------- +echo -------cleanmod.bat--------- +echo ---------------------------- + +echo creasourcefolder = %1 +echo creatoolsGeneration = %2 + + +set binfolder=%2\creatools_bin\%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 diff --git a/Install/scripts/base/cmakemod.bat b/Install/scripts/base/cmakemod.bat new file mode 100644 index 0000000..d0880c9 --- /dev/null +++ b/Install/scripts/base/cmakemod.bat @@ -0,0 +1,38 @@ +@echo off +echo ---------------------------- +echo -------cmakemod.bat--------- +echo ---------------------------- + +echo Module Sources Ex. crea bbbtk creaMaracasVisu... = %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 %PROCESSOR_ARCHITECTURE%==x86 ( + call %vcvarsall% +) else ( + call %vcvarsall% amd64 +) + +set binfolder=%3\creatools_bin\%1Bin +cd %binfolder% + +cmake -G"%compilerVersion%" -H%3\creatools_sources\%1 -B%3\creatools_bin\%1Bin +cmake -D INCLUDE_CTEST:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=%2\%1 CMakeCache.txt + +exit /B \ No newline at end of file diff --git a/Install/scripts/base/compilemod.bat b/Install/scripts/base/compilemod.bat new file mode 100644 index 0000000..58fcc6f --- /dev/null +++ b/Install/scripts/base/compilemod.bat @@ -0,0 +1,39 @@ +@echo off +echo ---------------------------- +echo -------compilemod.bat------- +echo ---------------------------- + +echo %1 = buildtype +echo %2 = Module Sources Ex crea bbtk creaMaracasVisu ... +echo %3 = creatoolsGeneration + +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 %PROCESSOR_ARCHITECTURE%==x86 ( + call %vcvarsall% +) else ( + call %vcvarsall% amd64 +) + +set binfolder=%3\creatools_bin\%2Bin +cd %binfolder% +FOR /R %%a IN (*.sln) DO msbuild %%a /p:UseEnv=true;BuildInParallel=true;Configuration=%1 +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 +copy %2*.exe %3\Result_Installers\ +exit /B \ No newline at end of file diff --git a/Install/scripts/base/ctestmod.bat b/Install/scripts/base/ctestmod.bat new file mode 100644 index 0000000..679286f --- /dev/null +++ b/Install/scripts/base/ctestmod.bat @@ -0,0 +1,24 @@ +@echo off +echo ---------------------------- +echo -------ctestmod.bat--------- +echo ---------------------------- +echo %1 = Module Sources Ex. crea bbbtk creaMaracasVisu... +echo %2 = creatoolsGeneration + +set binfolder=%2\creatools_bin\%1Bin + +cd %binfolder% + +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 diff --git a/Install/scripts/base/cvscheckout.bat b/Install/scripts/base/cvscheckout.bat new file mode 100644 index 0000000..26b622b --- /dev/null +++ b/Install/scripts/base/cvscheckout.bat @@ -0,0 +1,14 @@ +@echo off + +echo ---------------------------- +echo -----cvscheckout.bat-------- +echo ---------------------------- + +echo creasourcefolder=%1 +echo cvsUser=%2 +echo creatoolsGeneration=%3 + +mkdir %3\creatools_sources +cd %3\creatools_sources +cvs -d :ssh:%2@cvs.creatis.insa-lyon.fr:/cvs/creatis checkout %1 + diff --git a/Install/scripts/base/downloadSources.bat b/Install/scripts/base/downloadSources.bat new file mode 100644 index 0000000..9102e1e --- /dev/null +++ b/Install/scripts/base/downloadSources.bat @@ -0,0 +1,69 @@ +@echo off + +echo setting variables + +set creatoolsGeneration=%1 +set installPrefix=%2 +set cvsUser=%3 +set baseFolder=%4\base + +set creasource=crea +set bbtksource=bbtk +set creamaracassource=creaMaracasVisu +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 creadll=%creatoolsGeneration%\creatools_bin\%creasource%Bin\%buildtype% +set PATH=%creadll%;%PATH% +set bbtkdll=%creatoolsGeneration%\creatools_bin\%bbtksource%Bin\%buildtype% +set PATH=%bbtkdll%;%PATH% +set creamaracasdll=%creatoolsGeneration%\creatools_bin\%creamaracassource%Bin\%buildtype% +set PATH=%creamaracasdll%;%PATH% +set creaenvironmentdll=%creatoolsGeneration%\creatools_bin\%creaenvironmentsource%Bin\%buildtype% +set PATH=%creaenvironmentdll%;%PATH% +set creabrukerdll=%creatoolsGeneration%\creatools_bin\%creabrukersource%Bin\%buildtype% +set PATH=%creabrukerdll%;%PATH% +set creaimagedll=%creatoolsGeneration%\creatools_bin\%creaimagesource%Bin\%buildtype% +set PATH=%creaimagedll%;%PATH% +set creacontourdll=%creatoolsGeneration%\creatools_bin\%creacontourssource%Bin\%buildtype% +set PATH=%creacontoursdll%;%PATH% +set crearigidregistrationdll=%creatoolsGeneration%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype% +set PATH=%crearigidregistrationdll%;%PATH% +set bbtkgeditordll=%creatoolsGeneration%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype% +set PATH=%bbtkgeditordll%;%PATH% +set creaminitoolsdll=%creatoolsGeneration%\creatools_bin\%creaminitoolssource%Bin\%buildtype% +set PATH=%creaminitoolsdll%;%PATH% +set creatoolsdll=%creatoolsGeneration%\creatools_bin\%creatoolssource%Bin\%buildtype% +set PATH=%creatoolssdll%;%PATH% + +set logFolder=%4\log + +echo end setting variables + +echo cleaning prefix + call %baseFolder%\cleangeneral.bat %creatoolsGeneration% %installPrefix% + +echo downloading creatools software + + call %baseFolder%\cvscheckout.bat %creasource% %cvsUser% %creatoolsGeneration% >> %logFolder%\downloadSources.log 2>&1 + call %baseFolder%\cvscheckout.bat %bbtksource% %cvsUser% %creatoolsGeneration% >> %logFolder%\downloadSources.log 2>&1 + call %baseFolder%\cvscheckout.bat %creamaracassource% %cvsUser% %creatoolsGeneration% >> %logFolder%\downloadSources.log 2>&1 + call %baseFolder%\cvscheckout.bat %creaenvironmentsource% %cvsUser% %creatoolsGeneration% >> %logFolder%\downloadSources.log 2>&1 + call %baseFolder%\cvscheckout.bat %creabrukersource% %cvsUser% %creatoolsGeneration% >> %logFolder%\downloadSources.log 2>&1 + call %baseFolder%\cvscheckout.bat %creaimagesource% %cvsUser% %creatoolsGeneration% >> %logFolder%\downloadSources.log 2>&1 + call %baseFolder%\cvscheckout.bat %creacontourssource% %cvsUser% %creatoolsGeneration% >> %logFolder%\downloadSources.log 2>&1 + call %baseFolder%\cvscheckout.bat %crearigidregistrationssource% %cvsUser% %creatoolsGeneration% >> %logFolder%\downloadSources.log 2>&1 + call %baseFolder%\cvscheckout.bat %bbtkgeditorsource% %cvsUser% %creatoolsGeneration% >> %logFolder%\downloadSources.log 2>&1 + call %baseFolder%\cvscheckout.bat %creatoolssource% %cvsUser% %creatoolsGeneration% >> %logFolder%\downloadSources.log 2>&1 + call %baseFolder%\cvscheckout.bat %creaminitoolssource% %cvsUser% %creatoolsGeneration% >> %logFolder%\downloadSources.log 2>&1 + + echo end of downloading creatools software + +exit + \ No newline at end of file diff --git a/Install/scripts/bbtk/bbtkInstall.bat b/Install/scripts/bbtk/bbtkInstall.bat new file mode 100644 index 0000000..98517a7 --- /dev/null +++ b/Install/scripts/bbtk/bbtkInstall.bat @@ -0,0 +1,58 @@ +@echo off + +echo setting variables + +set creatoolsGeneration=%1 +set docgeneration=%2 +set cvsUser=%3 +set installPrefix=%4 +set buildtype=%5 +set baseFolder=%6\base + +set creasource=crea +set bbtksource=bbtk +set creamaracassource=creaMaracasVisu +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 creadll=%creatoolsGeneration%\creatools_bin\%creasource%Bin\%buildtype% +set PATH=%creadll%;%PATH% +set bbtkdll=%creatoolsGeneration%\creatools_bin\%bbtksource%Bin\%buildtype% +set PATH=%bbtkdll%;%PATH% +set creamaracasdll=%creatoolsGeneration%\creatools_bin\%creamaracassource%Bin\%buildtype% +set PATH=%creamaracasdll%;%PATH% +set creaenvironmentdll=%creatoolsGeneration%\creatools_bin\%creaenvironmentsource%Bin\%buildtype% +set PATH=%creaenvironmentdll%;%PATH% +set creabrukerdll=%creatoolsGeneration%\creatools_bin\%creabrukersource%Bin\%buildtype% +set PATH=%creabrukerdll%;%PATH% +set creaimagedll=%creatoolsGeneration%\creatools_bin\%creaimagesource%Bin\%buildtype% +set PATH=%creaimagedll%;%PATH% +set creacontourdll=%creatoolsGeneration%\creatools_bin\%creacontourssource%Bin\%buildtype% +set PATH=%creacontoursdll%;%PATH% +set crearigidregistrationdll=%creatoolsGeneration%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype% +set PATH=%crearigidregistrationdll%;%PATH% +set bbtkgeditordll=%creatoolsGeneration%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype% +set PATH=%bbtkgeditordll%;%PATH% +set creaminitoolsdll=%creatoolsGeneration%\creatools_bin\%creaminitoolssource%Bin\%buildtype% +set PATH=%creaminitoolsdll%;%PATH% +set creatoolsdll=%creatoolsGeneration%\creatools_bin\%creatoolssource%Bin\%buildtype% +set PATH=%creatoolssdll%;%PATH% +set currentdir=%~dp0 +set logFolder=%6\log + +echo end setting variables + +echo compile bbtk +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% >> %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 diff --git a/Install/scripts/bbtk/bbtkVariables.bat b/Install/scripts/bbtk/bbtkVariables.bat new file mode 100644 index 0000000..c6d88f7 --- /dev/null +++ b/Install/scripts/bbtk/bbtkVariables.bat @@ -0,0 +1,16 @@ +@echo off +echo %1 = creatoolsGeneration +echo %2 = bbtksourcefolder +echo %3 = docgeneration + +set binfolder=%1\creatools_bin\%2Bin +cd %binfolder% + +cmake -D --BUILD_ALL:BOOL=ON -D crea_DIR:PATH=%1\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 + +exit /B diff --git a/Install/scripts/bbtkGEditor/bbtkGEditorInstall.bat b/Install/scripts/bbtkGEditor/bbtkGEditorInstall.bat new file mode 100644 index 0000000..3a01e05 --- /dev/null +++ b/Install/scripts/bbtkGEditor/bbtkGEditorInstall.bat @@ -0,0 +1,59 @@ +@echo off + +echo setting variables + +set creatoolsGeneration=%1 +set docgeneration=%2 +set cvsUser=%3 +set installPrefix=%4 +set buildtype=%5 +set baseFolder=%6\base + +set creasource=crea +set bbtksource=bbtk +set creamaracassource=creaMaracasVisu +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 creadll=%creatoolsGeneration%\creatools_bin\%creasource%Bin\%buildtype% +set PATH=%creadll%;%PATH% +set bbtkdll=%creatoolsGeneration%\creatools_bin\%bbtksource%Bin\%buildtype% +set PATH=%bbtkdll%;%PATH% +set creamaracasdll=%creatoolsGeneration%\creatools_bin\%creamaracassource%Bin\%buildtype% +set PATH=%creamaracasdll%;%PATH% +set creaenvironmentdll=%creatoolsGeneration%\creatools_bin\%creaenvironmentsource%Bin\%buildtype% +set PATH=%creaenvironmentdll%;%PATH% +set creabrukerdll=%creatoolsGeneration%\creatools_bin\%creabrukersource%Bin\%buildtype% +set PATH=%creabrukerdll%;%PATH% +set creaimagedll=%creatoolsGeneration%\creatools_bin\%creaimagesource%Bin\%buildtype% +set PATH=%creaimagedll%;%PATH% +set creacontourdll=%creatoolsGeneration%\creatools_bin\%creacontourssource%Bin\%buildtype% +set PATH=%creacontoursdll%;%PATH% +set crearigidregistrationdll=%creatoolsGeneration%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype% +set PATH=%crearigidregistrationdll%;%PATH% +set bbtkgeditordll=%creatoolsGeneration%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype% +set PATH=%bbtkgeditordll%;%PATH% +set creaminitoolsdll=%creatoolsGeneration%\creatools_bin\%creaminitoolssource%Bin\%buildtype% +set PATH=%creaminitoolsdll%;%PATH% +set creatoolsdll=%creatoolsGeneration%\creatools_bin\%creatoolssource%Bin\%buildtype% +set PATH=%creatoolssdll%;%PATH% +set currentdir=%~dp0 +set logFolder=%6\log + +echo end setting variables + +echo compile bbtkGEditor +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% >> %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 diff --git a/Install/scripts/bbtkGEditor/bbtkGEditorVariables.bat b/Install/scripts/bbtkGEditor/bbtkGEditorVariables.bat new file mode 100644 index 0000000..76be772 --- /dev/null +++ b/Install/scripts/bbtkGEditor/bbtkGEditorVariables.bat @@ -0,0 +1,15 @@ +@echo off +echo %1 = creatoolsGeneration +echo %2 = bbtkgeditorsource +echo %3 = docgeneration + +set binfolder=%1\creatools_bin\%2Bin +cd %binfolder% + +cmake -D crea_DIR:PATH=%1\creatools_install\crea CMakeCache.txt +cmake -D BBTK_DIR:PATH=%1\creatools_install\bbtk CMakeCache.txt +cmake -D creaMaracasVisu_DIR:PATH=%1\creatools_install\creaMaracasVisu CMakeCache.txt +cmake -D BUILD_bbtkGEditor_DOC:BOOL=%3 CMakeCache.txt +cmake CMakeCache.txt + +exit /B \ No newline at end of file diff --git a/Install/scripts/crea/creaInstall.bat b/Install/scripts/crea/creaInstall.bat new file mode 100644 index 0000000..524447b --- /dev/null +++ b/Install/scripts/crea/creaInstall.bat @@ -0,0 +1,60 @@ +@echo off + +echo setting variables + +set creatoolsGeneration=%1 +set docgeneration=%2 +set cvsUser=%3 +set installPrefix=%4 +set buildtype=%5 +set baseFolder=%6\base + +set creasource=crea +set bbtksource=bbtk +set creamaracassource=creaMaracasVisu +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 creadll=%creatoolsGeneration%\creatools_bin\%creasource%Bin\%buildtype% +set PATH=%creadll%;%PATH% +set bbtkdll=%creatoolsGeneration%\creatools_bin\%bbtksource%Bin\%buildtype% +set PATH=%bbtkdll%;%PATH% +set creamaracasdll=%creatoolsGeneration%\creatools_bin\%creamaracassource%Bin\%buildtype% +set PATH=%creamaracasdll%;%PATH% +set creaenvironmentdll=%creatoolsGeneration%\creatools_bin\%creaenvironmentsource%Bin\%buildtype% +set PATH=%creaenvironmentdll%;%PATH% +set creabrukerdll=%creatoolsGeneration%\creatools_bin\%creabrukersource%Bin\%buildtype% +set PATH=%creabrukerdll%;%PATH% +set creaimagedll=%creatoolsGeneration%\creatools_bin\%creaimagesource%Bin\%buildtype% +set PATH=%creaimagedll%;%PATH% +set creacontourdll=%creatoolsGeneration%\creatools_bin\%creacontourssource%Bin\%buildtype% +set PATH=%creacontoursdll%;%PATH% +set crearigidregistrationdll=%creatoolsGeneration%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype% +set PATH=%crearigidregistrationdll%;%PATH% +set bbtkgeditordll=%creatoolsGeneration%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype% +set PATH=%bbtkgeditordll%;%PATH% +set creaminitoolsdll=%creatoolsGeneration%\creatools_bin\%creaminitoolssource%Bin\%buildtype% +set PATH=%creaminitoolsdll%;%PATH% +set creatoolsdll=%creatoolsGeneration%\creatools_bin\%creatoolssource%Bin\%buildtype% +set PATH=%creatoolssdll%;%PATH% +set currentdir=%~dp0 +set logFolder=%6\log + +echo end setting variables + +echo Compile crea +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% >> %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 diff --git a/Install/scripts/crea/creaVariables.bat b/Install/scripts/crea/creaVariables.bat new file mode 100644 index 0000000..1bce3a9 --- /dev/null +++ b/Install/scripts/crea/creaVariables.bat @@ -0,0 +1,19 @@ +@echo off +echo ---------------------------- +echo ----creaVariables.bat------- +echo ---------------------------- + +echo %1 = creatoolsGeneration +echo %2 = creasource +echo %3 = docgeneration + +set binfolder=%1\creatools_bin\%2Bin +cd %binfolder% + +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 +) + +exit /B \ No newline at end of file diff --git a/Install/scripts/creaBruker/creaBrukerInstall.bat b/Install/scripts/creaBruker/creaBrukerInstall.bat new file mode 100644 index 0000000..fe2a969 --- /dev/null +++ b/Install/scripts/creaBruker/creaBrukerInstall.bat @@ -0,0 +1,60 @@ +@echo off + +echo setting variables + +set creatoolsGeneration=%1 +set docgeneration=%2 +set cvsUser=%3 +set installPrefix=%4 +set buildtype=%5 +set baseFolder=%6\base + +set creasource=crea +set bbtksource=bbtk +set creamaracassource=creaMaracasVisu +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 creadll=%creatoolsGeneration%\creatools_bin\%creasource%Bin\%buildtype% +set PATH=%creadll%;%PATH% +set bbtkdll=%creatoolsGeneration%\creatools_bin\%bbtksource%Bin\%buildtype% +set PATH=%bbtkdll%;%PATH% +set creamaracasdll=%creatoolsGeneration%\creatools_bin\%creamaracassource%Bin\%buildtype% +set PATH=%creamaracasdll%;%PATH% +set creaenvironmentdll=%creatoolsGeneration%\creatools_bin\%creaenvironmentsource%Bin\%buildtype% +set PATH=%creaenvironmentdll%;%PATH% +set creabrukerdll=%creatoolsGeneration%\creatools_bin\%creabrukersource%Bin\%buildtype% +set PATH=%creabrukerdll%;%PATH% +set creaimagedll=%creatoolsGeneration%\creatools_bin\%creaimagesource%Bin\%buildtype% +set PATH=%creaimagedll%;%PATH% +set creacontourdll=%creatoolsGeneration%\creatools_bin\%creacontourssource%Bin\%buildtype% +set PATH=%creacontoursdll%;%PATH% +set crearigidregistrationdll=%creatoolsGeneration%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype% +set PATH=%crearigidregistrationdll%;%PATH% +set bbtkgeditordll=%creatoolsGeneration%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype% +set PATH=%bbtkgeditordll%;%PATH% +set creaminitoolsdll=%creatoolsGeneration%\creatools_bin\%creaminitoolssource%Bin\%buildtype% +set PATH=%creaminitoolsdll%;%PATH% +set creatoolsdll=%creatoolsGeneration%\creatools_bin\%creatoolssource%Bin\%buildtype% +set PATH=%creatoolssdll%;%PATH% +set currentdir=%~dp0 +set logFolder=%6\log + +echo end setting variables + +echo compile creaBruker +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% >> %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 diff --git a/Install/scripts/creaBruker/creaBrukerVariables.bat b/Install/scripts/creaBruker/creaBrukerVariables.bat new file mode 100644 index 0000000..5d149fc --- /dev/null +++ b/Install/scripts/creaBruker/creaBrukerVariables.bat @@ -0,0 +1,15 @@ +@echo off +echo ---------------------------- +echo --creaBrukerVariables.bat--- +echo ---------------------------- + +echo %1 = creatoolsGeneration +echo %2 = creabrukersource +echo %3 = docgeneration + +set binfolder=%1\creatools_bin\%2Bin +cd %binfolder% + +cmake -D --BUILD_ALL:BOOL=OFF -D crea_DIR:PATH=%1\creatools_install\crea -D BUILD_creaBruker_DOC:BOOL=%3 CMakeCache.txt + +exit /B \ No newline at end of file diff --git a/Install/scripts/creaContours/creaContoursInstall.bat b/Install/scripts/creaContours/creaContoursInstall.bat new file mode 100644 index 0000000..5847d56 --- /dev/null +++ b/Install/scripts/creaContours/creaContoursInstall.bat @@ -0,0 +1,59 @@ +@echo off + +echo setting variables + +set creatoolsGeneration=%1 +set docgeneration=%2 +set cvsUser=%3 +set installPrefix=%4 +set buildtype=%5 +set baseFolder=%6\base + +set creasource=crea +set bbtksource=bbtk +set creamaracassource=creaMaracasVisu +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 creadll=%creatoolsGeneration%\creatools_bin\%creasource%Bin\%buildtype% +set PATH=%creadll%;%PATH% +set bbtkdll=%creatoolsGeneration%\creatools_bin\%bbtksource%Bin\%buildtype% +set PATH=%bbtkdll%;%PATH% +set creamaracasdll=%creatoolsGeneration%\creatools_bin\%creamaracassource%Bin\%buildtype% +set PATH=%creamaracasdll%;%PATH% +set creaenvironmentdll=%creatoolsGeneration%\creatools_bin\%creaenvironmentsource%Bin\%buildtype% +set PATH=%creaenvironmentdll%;%PATH% +set creabrukerdll=%creatoolsGeneration%\creatools_bin\%creabrukersource%Bin\%buildtype% +set PATH=%creabrukerdll%;%PATH% +set creaimagedll=%creatoolsGeneration%\creatools_bin\%creaimagesource%Bin\%buildtype% +set PATH=%creaimagedll%;%PATH% +set creacontourdll=%creatoolsGeneration%\creatools_bin\%creacontourssource%Bin\%buildtype% +set PATH=%creacontoursdll%;%PATH% +set crearigidregistrationdll=%creatoolsGeneration%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype% +set PATH=%crearigidregistrationdll%;%PATH% +set bbtkgeditordll=%creatoolsGeneration%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype% +set PATH=%bbtkgeditordll%;%PATH% +set creaminitoolsdll=%creatoolsGeneration%\creatools_bin\%creaminitoolssource%Bin\%buildtype% +set PATH=%creaminitoolsdll%;%PATH% +set creatoolsdll=%creatoolsGeneration%\creatools_bin\%creatoolssource%Bin\%buildtype% +set PATH=%creatoolssdll%;%PATH% +set currentdir=%~dp0 +set logFolder=%6\log + +echo end setting variables + +echo compile creaContours +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% >> %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 diff --git a/Install/scripts/creaContours/creaContoursVariables.bat b/Install/scripts/creaContours/creaContoursVariables.bat new file mode 100644 index 0000000..fc2b60e --- /dev/null +++ b/Install/scripts/creaContours/creaContoursVariables.bat @@ -0,0 +1,19 @@ +@echo off +echo ---------------------------- +echo --creaContourVariables.bat-- +echo ---------------------------- + +echo %1 = creatoolsGeneration +echo %2 = creacontourssource +echo %3 = docgeneration + +set binfolder=%1\creatools_bin\%2Bin +cd %binfolder% + +echo %1=creabrukersource% %2=docgeneration +cmake -D crea_DIR:PATH=%1\creatools_install\crea -D creaEnvironment_DIR:PATH=%1\creatools_install\creaEnvironment -D creaMaracasVisu_DIR:PATH=%1\creatools_install\creaMaracasVisu -D creaImageIO_DIR:PATH=%1\creatools_install\creaImageIO CMakeCache.txt +cmake -D BBTK_DIR:PATH=%1\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 + +exit /B diff --git a/Install/scripts/creaEnvironment/creaEnvironmentInstall.bat b/Install/scripts/creaEnvironment/creaEnvironmentInstall.bat new file mode 100644 index 0000000..5252f8e --- /dev/null +++ b/Install/scripts/creaEnvironment/creaEnvironmentInstall.bat @@ -0,0 +1,59 @@ +@echo off + +echo setting variables + +set creatoolsGeneration=%1 +set docgeneration=%2 +set cvsUser=%3 +set installPrefix=%4 +set buildtype=%5 +set baseFolder=%6\base + +set creasource=crea +set bbtksource=bbtk +set creamaracassource=creaMaracasVisu +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 creadll=%creatoolsGeneration%\creatools_bin\%creasource%Bin\%buildtype% +set PATH=%creadll%;%PATH% +set bbtkdll=%creatoolsGeneration%\creatools_bin\%bbtksource%Bin\%buildtype% +set PATH=%bbtkdll%;%PATH% +set creamaracasdll=%creatoolsGeneration%\creatools_bin\%creamaracassource%Bin\%buildtype% +set PATH=%creamaracasdll%;%PATH% +set creaenvironmentdll=%creatoolsGeneration%\creatools_bin\%creaenvironmentsource%Bin\%buildtype% +set PATH=%creaenvironmentdll%;%PATH% +set creabrukerdll=%creatoolsGeneration%\creatools_bin\%creabrukersource%Bin\%buildtype% +set PATH=%creabrukerdll%;%PATH% +set creaimagedll=%creatoolsGeneration%\creatools_bin\%creaimagesource%Bin\%buildtype% +set PATH=%creaimagedll%;%PATH% +set creacontourdll=%creatoolsGeneration%\creatools_bin\%creacontourssource%Bin\%buildtype% +set PATH=%creacontoursdll%;%PATH% +set crearigidregistrationdll=%creatoolsGeneration%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype% +set PATH=%crearigidregistrationdll%;%PATH% +set bbtkgeditordll=%creatoolsGeneration%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype% +set PATH=%bbtkgeditordll%;%PATH% +set creaminitoolsdll=%creatoolsGeneration%\creatools_bin\%creaminitoolssource%Bin\%buildtype% +set PATH=%creaminitoolsdll%;%PATH% +set creatoolsdll=%creatoolsGeneration%\creatools_bin\%creatoolssource%Bin\%buildtype% +set PATH=%creatoolssdll%;%PATH% +set currentdir=%~dp0 +set logFolder=%6\log + +echo end setting variables + +echo compile creaEnvironment +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% >> %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 diff --git a/Install/scripts/creaEnvironment/creaenvironmentVariables.bat b/Install/scripts/creaEnvironment/creaenvironmentVariables.bat new file mode 100644 index 0000000..e2fc3ee --- /dev/null +++ b/Install/scripts/creaEnvironment/creaenvironmentVariables.bat @@ -0,0 +1,15 @@ +@echo off +echo ---------------------------- +echo creaenvironmentVariables.bat +echo ---------------------------- + +echo %1 = creatoolsGeneration +echo %2 = creamaracassourcefolder +echo %3 = docgeneration + +set binfolder=%1\creatools_bin\%2Bin +cd %binfolder% + +cmake -D crea_DIR:PATH=%1\creatools_install\crea CMakeCache.txt + +exit /B \ No newline at end of file diff --git a/Install/scripts/creaImageIO/creaImageIOInstall.bat b/Install/scripts/creaImageIO/creaImageIOInstall.bat new file mode 100644 index 0000000..8e2b506 --- /dev/null +++ b/Install/scripts/creaImageIO/creaImageIOInstall.bat @@ -0,0 +1,59 @@ +@echo off + +echo setting variables + +set creatoolsGeneration=%1 +set docgeneration=%2 +set cvsUser=%3 +set installPrefix=%4 +set buildtype=%5 +set baseFolder=%6\base + +set creasource=crea +set bbtksource=bbtk +set creamaracassource=creaMaracasVisu +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 creadll=%creatoolsGeneration%\creatools_bin\%creasource%Bin\%buildtype% +set PATH=%creadll%;%PATH% +set bbtkdll=%creatoolsGeneration%\creatools_bin\%bbtksource%Bin\%buildtype% +set PATH=%bbtkdll%;%PATH% +set creamaracasdll=%creatoolsGeneration%\creatools_bin\%creamaracassource%Bin\%buildtype% +set PATH=%creamaracasdll%;%PATH% +set creaenvironmentdll=%creatoolsGeneration%\creatools_bin\%creaenvironmentsource%Bin\%buildtype% +set PATH=%creaenvironmentdll%;%PATH% +set creabrukerdll=%creatoolsGeneration%\creatools_bin\%creabrukersource%Bin\%buildtype% +set PATH=%creabrukerdll%;%PATH% +set creaimagedll=%creatoolsGeneration%\creatools_bin\%creaimagesource%Bin\%buildtype% +set PATH=%creaimagedll%;%PATH% +set creacontourdll=%creatoolsGeneration%\creatools_bin\%creacontourssource%Bin\%buildtype% +set PATH=%creacontoursdll%;%PATH% +set crearigidregistrationdll=%creatoolsGeneration%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype% +set PATH=%crearigidregistrationdll%;%PATH% +set bbtkgeditordll=%creatoolsGeneration%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype% +set PATH=%bbtkgeditordll%;%PATH% +set creaminitoolsdll=%creatoolsGeneration%\creatools_bin\%creaminitoolssource%Bin\%buildtype% +set PATH=%creaminitoolsdll%;%PATH% +set creatoolsdll=%creatoolsGeneration%\creatools_bin\%creatoolssource%Bin\%buildtype% +set PATH=%creatoolssdll%;%PATH% +set currentdir=%~dp0 +set logFolder=%6\log + +echo end setting variables + +echo compile creaImageIO +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% >> %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 diff --git a/Install/scripts/creaImageIO/creaImageIOVariables.bat b/Install/scripts/creaImageIO/creaImageIOVariables.bat new file mode 100644 index 0000000..24720ac --- /dev/null +++ b/Install/scripts/creaImageIO/creaImageIOVariables.bat @@ -0,0 +1,18 @@ +@echo off +echo ---------------------------- +echo ----creaIOVariable.bat------ +echo ---------------------------- + +echo %1 = creatoolsGeneration +echo %2 = creaimagesource +echo %3 = docgeneration + +set binfolder=%1\creatools_bin\%2Bin +cd %binfolder% + +cmake -D crea_DIR:PATH=%1\creatools_install\crea -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON -D creaBruker_DIR:PATH=%1\creatools_install\creaBruker -D USE_GDCM:BOOL=ON CMakeCache.txt +cmake -D BBTK_DIR:PATH=%1\creatools_install\bbtk CMakeCache.txt +cmake -D BUILD_DOXYGEN_DOC:BOOL=%3 -D BUILD_BBTK_PACKAGE_creaImageIO_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt +cmake CMakeCache.txt + +exit /B \ No newline at end of file diff --git a/Install/scripts/creaMaracasVisu/creaMaracasVariables.bat b/Install/scripts/creaMaracasVisu/creaMaracasVariables.bat new file mode 100644 index 0000000..e2d1c3d --- /dev/null +++ b/Install/scripts/creaMaracasVisu/creaMaracasVariables.bat @@ -0,0 +1,18 @@ +@echo off +echo ---------------------------- +echo --creaMaracasVariables.bat-- +echo ---------------------------- + +echo %1 = creatoolsGeneration +echo %2 = creamaracassourcefolder +echo %3 = docgeneration + +set binfolder=%1\creatools_bin\%2Bin +cd %binfolder% + +cmake -D crea_DIR:PATH=%1\creatools_install\crea -D BUILD_BBTK_PACKAGE_creaMaracasVisu:BOOL=ON -D creaMaracasVisu_DOC:BOOL=%3 CMakeCache.txt +cmake -D BBTK_DIR:PATH=%1\creatools_install\bbtk CMakeCache.txt +cmake -D BUILD_BBTK_PACKAGE_creaMaracasVisu_DOXYGEN_DOC:BOOL=%3 CMakeCache.txt +cmake CMakeCache.txt + +exit /B \ No newline at end of file diff --git a/Install/scripts/creaMaracasVisu/creaMaracasVisuInstall.bat b/Install/scripts/creaMaracasVisu/creaMaracasVisuInstall.bat new file mode 100644 index 0000000..6ff20cf --- /dev/null +++ b/Install/scripts/creaMaracasVisu/creaMaracasVisuInstall.bat @@ -0,0 +1,59 @@ +@echo off + +echo setting variables + +set creatoolsGeneration=%1 +set docgeneration=%2 +set cvsUser=%3 +set installPrefix=%4 +set buildtype=%5 +set baseFolder=%6\base + +set creasource=crea +set bbtksource=bbtk +set creamaracassource=creaMaracasVisu +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 creadll=%creatoolsGeneration%\creatools_bin\%creasource%Bin\%buildtype% +set PATH=%creadll%;%PATH% +set bbtkdll=%creatoolsGeneration%\creatools_bin\%bbtksource%Bin\%buildtype% +set PATH=%bbtkdll%;%PATH% +set creamaracasdll=%creatoolsGeneration%\creatools_bin\%creamaracassource%Bin\%buildtype% +set PATH=%creamaracasdll%;%PATH% +set creaenvironmentdll=%creatoolsGeneration%\creatools_bin\%creaenvironmentsource%Bin\%buildtype% +set PATH=%creaenvironmentdll%;%PATH% +set creabrukerdll=%creatoolsGeneration%\creatools_bin\%creabrukersource%Bin\%buildtype% +set PATH=%creabrukerdll%;%PATH% +set creaimagedll=%creatoolsGeneration%\creatools_bin\%creaimagesource%Bin\%buildtype% +set PATH=%creaimagedll%;%PATH% +set creacontourdll=%creatoolsGeneration%\creatools_bin\%creacontourssource%Bin\%buildtype% +set PATH=%creacontoursdll%;%PATH% +set crearigidregistrationdll=%creatoolsGeneration%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype% +set PATH=%crearigidregistrationdll%;%PATH% +set bbtkgeditordll=%creatoolsGeneration%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype% +set PATH=%bbtkgeditordll%;%PATH% +set creaminitoolsdll=%creatoolsGeneration%\creatools_bin\%creaminitoolssource%Bin\%buildtype% +set PATH=%creaminitoolsdll%;%PATH% +set creatoolsdll=%creatoolsGeneration%\creatools_bin\%creatoolssource%Bin\%buildtype% +set PATH=%creatoolssdll%;%PATH% +set currentdir=%~dp0 +set logFolder=%6\log + +echo end setting variables + +echo compile creaMaracasVisu +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% >> %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 diff --git a/Install/scripts/creaRigidRegistration/creaRigidRInstall.bat b/Install/scripts/creaRigidRegistration/creaRigidRInstall.bat new file mode 100644 index 0000000..548fe68 --- /dev/null +++ b/Install/scripts/creaRigidRegistration/creaRigidRInstall.bat @@ -0,0 +1,59 @@ +@echo off + +echo setting variables + +set creatoolsGeneration=%1 +set docgeneration=%2 +set cvsUser=%3 +set installPrefix=%4 +set buildtype=%5 +set baseFolder=%6\base + +set creasource=crea +set bbtksource=bbtk +set creamaracassource=creaMaracasVisu +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 creadll=%creatoolsGeneration%\creatools_bin\%creasource%Bin\%buildtype% +set PATH=%creadll%;%PATH% +set bbtkdll=%creatoolsGeneration%\creatools_bin\%bbtksource%Bin\%buildtype% +set PATH=%bbtkdll%;%PATH% +set creamaracasdll=%creatoolsGeneration%\creatools_bin\%creamaracassource%Bin\%buildtype% +set PATH=%creamaracasdll%;%PATH% +set creaenvironmentdll=%creatoolsGeneration%\creatools_bin\%creaenvironmentsource%Bin\%buildtype% +set PATH=%creaenvironmentdll%;%PATH% +set creabrukerdll=%creatoolsGeneration%\creatools_bin\%creabrukersource%Bin\%buildtype% +set PATH=%creabrukerdll%;%PATH% +set creaimagedll=%creatoolsGeneration%\creatools_bin\%creaimagesource%Bin\%buildtype% +set PATH=%creaimagedll%;%PATH% +set creacontourdll=%creatoolsGeneration%\creatools_bin\%creacontourssource%Bin\%buildtype% +set PATH=%creacontoursdll%;%PATH% +set crearigidregistrationdll=%creatoolsGeneration%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype% +set PATH=%crearigidregistrationdll%;%PATH% +set bbtkgeditordll=%creatoolsGeneration%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype% +set PATH=%bbtkgeditordll%;%PATH% +set creaminitoolsdll=%creatoolsGeneration%\creatools_bin\%creaminitoolssource%Bin\%buildtype% +set PATH=%creaminitoolsdll%;%PATH% +set creatoolsdll=%creatoolsGeneration%\creatools_bin\%creatoolssource%Bin\%buildtype% +set PATH=%creatoolssdll%;%PATH% +set currentdir=%~dp0 +set logFolder=%6\log + +echo end setting variables + +echo compile creaRigidRegistration +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% >> %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 diff --git a/Install/scripts/creaRigidRegistration/creaRigidRegistrationVariables.bat b/Install/scripts/creaRigidRegistration/creaRigidRegistrationVariables.bat new file mode 100644 index 0000000..e641f49 --- /dev/null +++ b/Install/scripts/creaRigidRegistration/creaRigidRegistrationVariables.bat @@ -0,0 +1,19 @@ +@echo off +echo ---------------------------- +echo creaRigidRegistrationVariables.bat +echo ---------------------------- + +echo %1 = creatoolsGeneration +echo %2 = crearigidregistrationssource +echo %3 = docgeneration + +set binfolder=%1\creatools_bin\%2Bin +cd %binfolder% + +cmake -D crea_DIR:PATH=%1\creatools_install\crea -D BUILD_BBTK_PACKAGE_PackRecalage:BOOL=ON CMakeCache.txt +cmake -D BBTK_DIR:PATH=%1\creatools_install\bbtk 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 + +exit /B \ No newline at end of file diff --git a/Install/scripts/creaTools/compilemodCreaTools.bat b/Install/scripts/creaTools/compilemodCreaTools.bat new file mode 100644 index 0000000..0210fb7 --- /dev/null +++ b/Install/scripts/creaTools/compilemodCreaTools.bat @@ -0,0 +1,33 @@ +@echo off + +echo %1 = buildtype +echo %2 = Module Sources Ex crea bbtk creaMaracasVisu ... +echo %3 = creatoolsGeneration + +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 %PROCESSOR_ARCHITECTURE%==x86 ( + call %vcvarsall% +) else ( + call %vcvarsall% amd64 +) + +set binfolder=%3\creatools_bin\%1Bin +cd %binfolder% +FOR /R %%a IN (*.sln) DO msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%1 PACKAGE.vcxproj +copy %2*.exe %3\Result_Installers\ + diff --git a/Install/scripts/creaTools/creaMiniToolsVariables.bat b/Install/scripts/creaTools/creaMiniToolsVariables.bat new file mode 100644 index 0000000..6ad6cf1 --- /dev/null +++ b/Install/scripts/creaTools/creaMiniToolsVariables.bat @@ -0,0 +1,23 @@ +@echo off +echo ---------------------------- +echo -creaMiniToolsVariables.bat- +echo ---------------------------- + +echo %1 = creatoolsGeneration +echo %2 = creaminitoolssource +echo %3 = docgeneration + +set binfolder=%1\creatools_bin\%2Bin +cd %binfolder% + +cmake -D crea_DIR:PATH=%1\creatools_install\crea CMakeCache.txt +cmake -D BBTK_DIR:PATH=%1\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 CMakeCache.txt + diff --git a/Install/scripts/creaTools/creaMinitoolsInstall.bat b/Install/scripts/creaTools/creaMinitoolsInstall.bat new file mode 100644 index 0000000..f12451f --- /dev/null +++ b/Install/scripts/creaTools/creaMinitoolsInstall.bat @@ -0,0 +1,59 @@ +@echo off + +echo setting variables + +set creatoolsGeneration=%1 +set docgeneration=%2 +set cvsUser=%3 +set installPrefix=%4 +set buildtype=%5 +set baseFolder=%6\base + +set creasource=crea +set bbtksource=bbtk +set creamaracassource=creaMaracasVisu +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 creadll=%creatoolsGeneration%\creatools_bin\%creasource%Bin\%buildtype% +set PATH=%creadll%;%PATH% +set bbtkdll=%creatoolsGeneration%\creatools_bin\%bbtksource%Bin\%buildtype% +set PATH=%bbtkdll%;%PATH% +set creamaracasdll=%creatoolsGeneration%\creatools_bin\%creamaracassource%Bin\%buildtype% +set PATH=%creamaracasdll%;%PATH% +set creaenvironmentdll=%creatoolsGeneration%\creatools_bin\%creaenvironmentsource%Bin\%buildtype% +set PATH=%creaenvironmentdll%;%PATH% +set creabrukerdll=%creatoolsGeneration%\creatools_bin\%creabrukersource%Bin\%buildtype% +set PATH=%creabrukerdll%;%PATH% +set creaimagedll=%creatoolsGeneration%\creatools_bin\%creaimagesource%Bin\%buildtype% +set PATH=%creaimagedll%;%PATH% +set creacontourdll=%creatoolsGeneration%\creatools_bin\%creacontourssource%Bin\%buildtype% +set PATH=%creacontoursdll%;%PATH% +set crearigidregistrationdll=%creatoolsGeneration%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype% +set PATH=%crearigidregistrationdll%;%PATH% +set bbtkgeditordll=%creatoolsGeneration%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype% +set PATH=%bbtkgeditordll%;%PATH% +set creaminitoolsdll=%creatoolsGeneration%\creatools_bin\%creaminitoolssource%Bin\%buildtype% +set PATH=%creaminitoolsdll%;%PATH% +set creatoolsdll=%creatoolsGeneration%\creatools_bin\%creatoolssource%Bin\%buildtype% +set PATH=%creatoolssdll%;%PATH% +set currentdir=%~dp0 +set logFolder=%6\log + +echo end setting variables + +echo Compile creaTools +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%\creaVariables.bat %creatoolsGeneration% %creaminitoolssource% %docgeneration% >> %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 diff --git a/Install/scripts/creaTools/creaToolsInstall.bat b/Install/scripts/creaTools/creaToolsInstall.bat new file mode 100644 index 0000000..1e1cf60 --- /dev/null +++ b/Install/scripts/creaTools/creaToolsInstall.bat @@ -0,0 +1,59 @@ +@echo off + +echo setting variables + +set creatoolsGeneration=%1 +set docgeneration=%2 +set cvsUser=%3 +set installPrefix=%4 +set buildtype=%5 +set baseFolder=%6\base + +set creasource=crea +set bbtksource=bbtk +set creamaracassource=creaMaracasVisu +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 creadll=%creatoolsGeneration%\creatools_bin\%creasource%Bin\%buildtype% +set PATH=%creadll%;%PATH% +set bbtkdll=%creatoolsGeneration%\creatools_bin\%bbtksource%Bin\%buildtype% +set PATH=%bbtkdll%;%PATH% +set creamaracasdll=%creatoolsGeneration%\creatools_bin\%creamaracassource%Bin\%buildtype% +set PATH=%creamaracasdll%;%PATH% +set creaenvironmentdll=%creatoolsGeneration%\creatools_bin\%creaenvironmentsource%Bin\%buildtype% +set PATH=%creaenvironmentdll%;%PATH% +set creabrukerdll=%creatoolsGeneration%\creatools_bin\%creabrukersource%Bin\%buildtype% +set PATH=%creabrukerdll%;%PATH% +set creaimagedll=%creatoolsGeneration%\creatools_bin\%creaimagesource%Bin\%buildtype% +set PATH=%creaimagedll%;%PATH% +set creacontourdll=%creatoolsGeneration%\creatools_bin\%creacontourssource%Bin\%buildtype% +set PATH=%creacontoursdll%;%PATH% +set crearigidregistrationdll=%creatoolsGeneration%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype% +set PATH=%crearigidregistrationdll%;%PATH% +set bbtkgeditordll=%creatoolsGeneration%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype% +set PATH=%bbtkgeditordll%;%PATH% +set creaminitoolsdll=%creatoolsGeneration%\creatools_bin\%creaminitoolssource%Bin\%buildtype% +set PATH=%creaminitoolsdll%;%PATH% +set creatoolsdll=%creatoolsGeneration%\creatools_bin\%creatoolssource%Bin\%buildtype% +set PATH=%creatoolssdll%;%PATH% +set currentdir=%~dp0 +set logFolder=%6\log + +echo end setting variables + +echo Compile creaTools +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% >> %logFolder%\creaToolsInstall.log 2>&1 +call %baseFolder%\compilemod.bat %buildtype% %creatoolssource% %creatoolsGeneration% >> %logFolder%\creaToolsInstall.log 2>&1 +::call %baseFolder%\ctestmod.bat %creatoolssource% %creatoolsGeneration% >> %logFolder%\creaToolsInstall.log 2>&1 +echo end of creaTools compilation + +exit \ No newline at end of file diff --git a/Install/scripts/creaTools/creaToolsVariables.bat b/Install/scripts/creaTools/creaToolsVariables.bat new file mode 100644 index 0000000..218d9d1 --- /dev/null +++ b/Install/scripts/creaTools/creaToolsVariables.bat @@ -0,0 +1,13 @@ +@echo off +echo ---------------------------- +echo ---creaToolVariables.bat---- +echo ---------------------------- + +echo %1 = creatoolsGeneration +echo %2 = creatoolssource +echo %3 = docgeneration + +set binfolder=%1\creatools_bin\%2Bin +cd %binfolder% + +cmake -D CREATOOLS_SOURCE_PATH:PATH=%1\creatools_install CMakeCache.txt -- 2.47.1