19 lines
325 B
Batchfile
19 lines
325 B
Batchfile
@echo off
|
|
|
|
:: Makes sure the working directory is repo-root and not scripts/ ::
|
|
|
|
for %%I in ("%~dp0.") do set "SCRIPT_DIRNAME=%%~nxI"
|
|
|
|
if /i "%SCRIPT_DIRNAME%"=="scripts" (
|
|
cd /d "%~dp0.."
|
|
)
|
|
|
|
:: Creates and enters the build directory ::
|
|
|
|
mkdir build
|
|
cd build
|
|
|
|
:: Generates the build files (uses Ninja) ::
|
|
|
|
cmake .. -G Ninja
|