@ECHO OFF ECHO Setting up Windows builds ... git clone --depth 1 --branch json-c-0.16 https://github.com/json-c/json-c.git json-c if %errorlevel% neq 0 exit /b %errorlevel% MKDIR json-c\build\ if %errorlevel% neq 0 exit /b %errorlevel% MKDIR json-c\build\install\ if %errorlevel% neq 0 exit /b %errorlevel% CD json-c\build\ cmake -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=release -DBUILD_SHARED_LIBS=OFF .. if %errorlevel% neq 0 exit /b %errorlevel% cmake --build . --target install if %errorlevel% neq 0 exit /b %errorlevel% CD ..\..\