set itk=itk
set gdcm=gdcm13
set vtk=vtk
+set sqlite=sqlite
set QTDIR=%sourcepath%\%qt%
set JOMDIR=%sourcepath%\%jom%
set ITKSRCDIR=%sourcepath%\%itk%
set VTKSRCDIR=%sourcepath%\%VTK%
set GDCMSRCDIR=%sourcepath%\%gdcm%
+set SQLITESRCDIR=%sourcepath%\%sqlite%
set LogFolder=%thirdpartyGeneration%\installLog
echo -----------------------------------
echo VTKSRCDIR=%VTKSRCDIR%
echo GDCMDIR=%GDCMSRCDIR%
echo JOMDIR=%JOMDIR%
+echo SQLITEDIR=%SQLITESRCDIR%
echo -----------------------------------
echo ---End Setting Global Variables----
cd %sourcepath%\%boost%
call bootstrap.bat >> %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
+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 (
:SKIPINSTALLITK
-
if %EEDinstallXERCES%==FALSE GOTO SKIPINSTALLXERCES
echo -----------------------------------
echo ------XERCES Installation----------
:SKIPINSTALLXERCES
+
+echo ----------------------------------------
+echo -------- SQLite Installation------------
+echo ----------------------------------------
+
+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:\
+:SKIPINSTALLSQLite
+
+
+
echo -----------------------------------
echo ---End of Installing Libraries-----
echo -----------------------------------