setlocal EnableDelayedExpansion

mkdir build
cd build

cmake -GNinja ^
    -DCMAKE_BUILD_TYPE:STRING=Release ^
    -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
    -DCMAKE_PREFIX_PATH:PATH="%LIBRARY_PREFIX%" ^
    -DCONVERT3D_USE_ITK_REMOTE_MODULES:BOOL=OFF ^
    ..
if errorlevel 1 exit 1

cmake --build .
if errorlevel 1 exit 1

ctest --extra-verbose --output-on-failure .
if errorlevel 1 exit 1

cmake --install .
if errorlevel 1 exit 1

setlocal EnableDelayedExpansion

mkdir build
cd build

set CFLAGS="%CFLAGS% -I %LIBRARY_PREFIX%\include\eigen3"
set CXXFLAGS="%CXXFLAGS% -I %LIBRARY_PREFIX%\include\eigen3"

cmake -GNinja ^
    -DCMAKE_BUILD_TYPE:STRING=Release ^
    -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
    -DCMAKE_PREFIX_PATH:PATH="%LIBRARY_PREFIX%" ^
    -DCONVERT3D_USE_ITK_REMOTE_MODULES:BOOL=OFF ^
    ..
if errorlevel 1 exit 1

cmake --build .
if errorlevel 1 exit 1

ctest --extra-verbose --output-on-failure .
if errorlevel 1 exit 1

cmake --install .
if errorlevel 1 exit 1

Add missing CFLAGS override for Windows
Add missing CFLAGS override for Windows
