run.cmd (371B)
1 set build_dir=%1 2 shift 3 echo Preparing directories... 4 rmdir /s /q %build_dir% 5 mkdir %build_dir% 6 pushd %build_dir% 7 echo Running cmake -GNinja -DENABLE_TESTS=ON %* .. 8 cmake -GNinja -DENABLE_TESTS=ON -DCMAKE_INSTALL_PREFIX=dist %* .. || exit /b 9 echo Running ninja... 10 ninja %JOBS% || exit /b 11 ninja install || exit /b 12 echo Running tests... 13 cd tests && ctest -V || exit /b 14 popd