From 649aaf302fd54753d284df0278cf1453e669f419 Mon Sep 17 00:00:00 2001 From: gameboycjp <37276103+gameboycjp@users.noreply.github.com> Date: Fri, 21 Apr 2023 21:14:08 +0000 Subject: [PATCH 1/3] Add Batch File To Run CMake Automatically Added for ease of use --- winprepareVS19.bat | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 winprepareVS19.bat diff --git a/winprepareVS19.bat b/winprepareVS19.bat new file mode 100644 index 0000000000..5950b78c75 --- /dev/null +++ b/winprepareVS19.bat @@ -0,0 +1,4 @@ +mkdir build +cd build +cmake .. -G "Visual Studio 16 2019" -A x64 +pause \ No newline at end of file From cd51bd516ff6a2478ca697cde80bbcfb0a71a752 Mon Sep 17 00:00:00 2001 From: gameboycjp <37276103+gameboycjp@users.noreply.github.com> Date: Fri, 21 Apr 2023 14:30:41 -0700 Subject: [PATCH 2/3] Update BUILD_WIN.md Overhaul step 7 --- BUILD_WIN.md | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/BUILD_WIN.md b/BUILD_WIN.md index 8f69fa2e01..7a1d6ffeb0 100644 --- a/BUILD_WIN.md +++ b/BUILD_WIN.md @@ -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. From a4b416eacdf5fac37062d356b631c4297368b28c Mon Sep 17 00:00:00 2001 From: gameboycjp <37276103+gameboycjp@users.noreply.github.com> Date: Fri, 21 Apr 2023 16:49:20 -0700 Subject: [PATCH 3/3] Update winprepareVS19.bat There should either be no pause, or it should wait for user input. If CMake fails, this gives the user a chance to review logs. --- winprepareVS19.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/winprepareVS19.bat b/winprepareVS19.bat index 5950b78c75..259286a9bb 100644 --- a/winprepareVS19.bat +++ b/winprepareVS19.bat @@ -1,4 +1,5 @@ mkdir build cd build cmake .. -G "Visual Studio 16 2019" -A x64 -pause \ No newline at end of file +ECHO CMake has finished. +pause