mkdir build
cd build

:: Configure.
./configure  --prefix=%LIBRARY_PREFIX% --disable-static
if errorlevel 1 exit 1

:: Build.
nmake
if errorlevel 1 exit 1

:: Test.
ctest
if errorlevel 1 exit 1

:: Install.
nmake install
if errorlevel 1 exit 1
