set thirdpartyGeneration=%1
set thirdpartyInstallPath=%2
+set "miktex=%ProgramFiles(x86)%\MiKTeX 2.9"
set installpath=%thirdpartyGeneration%\thirdparty_install
set binpath=%thirdpartyGeneration%\thirdparty_bin
set sourcepath=%thirdpartyGeneration%\thirdparty_source
set itk=InsightToolkit-3.20.0
set gdcm=gdcm
set vtk=VTK
+set tth=tth
+set miktexAux=MiKTeX-2.9
set QTDIR=%sourcepath%\%qt%
set WXDIR=%sourcepath%\%wxWidgets%
set ITKINSTALLDIR=%installpath%\%itk%
set VTKINSTALLDIR=%installpath%\%vtk%
set GDCMINSTALLDIR=%installpath%\%gdcm%
+set TTHDIR=%sourcepath%\%tth%
+
+if "%miktex%"=="\MiKTeX 2.9" set "miktex=%ProgramFiles%\MiKTeX 2.9"
+if "%miktex%"=="\MiKTeX 2.9" (
+ echo ERROR!!! MiKTex has not been found in the system
+ exit
+)
+
+goto next
mkdir %creaThirdPartyLibraries%
XCOPY %WXDIR%\lib\vc_dll\mswu\* %creaThirdPartyLibraries%\%wxWidgets%\lib\vc_dll\mswu /s /i
mkdir %creaThirdPartyLibraries%\%wxWidgets%\src\jpeg
-%creaThirdPartyLibraries%\%wxWidgets%\src\png
-%creaThirdPartyLibraries%\%wxWidgets%\src\tiff
-%creaThirdPartyLibraries%\%wxWidgets%\src\zlib
+mkdir %creaThirdPartyLibraries%\%wxWidgets%\src\png
+mkdir %creaThirdPartyLibraries%\%wxWidgets%\src\tiff
+mkdir %creaThirdPartyLibraries%\%wxWidgets%\src\zlib
XCOPY %WXDIR%\src\jpeg\* %creaThirdPartyLibraries%\%wxWidgets%\src\jpeg /s /i
XCOPY %WXDIR%\src\png\* %creaThirdPartyLibraries%\%wxWidgets%\src\png /s /i
copy /V /Y %BOOSTDIR%\stage\lib\boost_wave-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
copy /V /Y %BOOSTDIR%\stage\lib\boost_wserialization-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
copy /V /Y %BOOSTDIR%\stage\lib\boost_wserialization-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
-
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_date_time-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_date_time-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_date_time-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_date_time-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_filesystem-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_filesystem-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_filesystem-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_filesystem-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_graph-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_graph-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_graph-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_graph-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_iostreams-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_iostreams-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_iostreams-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_iostreams-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_prg_exec_monitor-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_prg_exec_monitor-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_prg_exec_monitor-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_prg_exec_monitor-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_program_options-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_program_options-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_program_options-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_program_options-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_regex-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_regex-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_regex-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_regex-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_serialization-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_serialization-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_serialization-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_serialization-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_signals-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_signals-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_signals-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_signals-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_system-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_system-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_system-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_system-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_test_exec_monitor-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_test_exec_monitor-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_test_exec_monitor-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_test_exec_monitor-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_thread-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_thread-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_thread-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_thread-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_unit_test_framework-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_unit_test_framework-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_unit_test_framework-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_unit_test_framework-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_wave-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_wave-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_wave-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_wave-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_wserialization-vc100-mt-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_wserialization-vc100-mt-gd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_wserialization-vc100-mt-s-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
+copy /V /Y %BOOSTDIR%\stage\lib\libboost_wserialization-vc100-mt-sgd-1_47.lib %creaThirdPartyLibraries%\%boost%\lib
echo -----------------------------------
echo -------------Xcerces---------------
XCOPY %GDCMINSTALLDIR%\lib\* %creaThirdPartyLibraries%\%gdcm%\lib /s /i
XCOPY %GDCMINSTALLDIR%\share\* %creaThirdPartyLibraries%\%gdcm%\share /s /i
+echo -----------------------------------
+echo -------------TTH-------------------
+echo -----------------------------------
+mkdir %creaThirdPartyLibraries%\tth
+XCOPY %TTHDIR%\* %creaThirdPartyLibraries%\%tth% /s /i
+echo -----------------------------------
+echo -------------MiKText---------------
+echo -----------------------------------
+mkdir %creaThirdPartyLibraries%\%miktexAux%
+:next
+echo %miktex%
+XCOPY "%miktex%\*" %creaThirdPartyLibraries%\%miktexAux% /s /i
\ No newline at end of file