Merge pull request #375 from gameboycjp/WinCMakeBatFile

Windows Building Tweak
This commit is contained in:
Dale Glass 2023-04-22 22:47:38 +02:00 committed by GitHub
commit f2c51cd459
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 6 deletions

View file

@ -95,13 +95,24 @@ To create this variable:
## Step 7. Running CMake to Generate Build Files
Run Command Prompt from Start and run the following commands:
`cd "%OVERTE_DIR%"`
`mkdir build`
`cd build`
These instructions only apply to Visual Studio 2019.
### Visual Studio 2019
Run `cmake .. -G "Visual Studio 16 2019" -A x64`.
### Automatic
There is a batch file to automatically run the commands below for ease of use.
`winprepareVS19.bat`
### Manual
Run The Command Prompt from Start and run the following commands:
```Bash
cd "%OVERTE_DIR%"
mkdir build
cd build
cmake .. -G "Visual Studio 16 2019" -A x64
```
Where `%OVERTE_DIR%` is the directory for the Overte repository.

5
winprepareVS19.bat Normal file
View file

@ -0,0 +1,5 @@
mkdir build
cd build
cmake .. -G "Visual Studio 16 2019" -A x64
ECHO CMake has finished.
pause