Skip to content

Commit f180f5d

Browse files
committed
Add section for building with solutions in MSVC22 instructions
1 parent f122e40 commit f180f5d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

SourceCode/Builds/build_with_msvc22.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ For build using solutions and more advanced build configurations, see below.
88
- [Build through Visual Studio 2022](#1-prepare-the-project)
99
- [Build through CMake target view](#build-through-cmake-target-view)
1010
- [Build using command line](#build-using-command-line)
11+
- [Build using solutions](#build-with-solutions)
1112
- [Troubleshooting](#troubleshooting)
1213

1314
## Prerequisites
@@ -76,7 +77,6 @@ to build the project from the command line.
7677
> VS 2022" from the Start menu. Once opened, navigate to the project directory in the terminal and proceed
7778
> to run the commands below.
7879
79-
8080
- #### 1. **Release Build**
8181

8282
- **Choose the build configuration:**
@@ -95,12 +95,18 @@ to build the project from the command line.
9595
- **Install the game executable in the game directory (assuming the build was successful):**
9696
- `cmake --install build/<preset name>`
9797

98-
9998
- **To build a specific target:**
10099
- Run `cmake --build build/<preset name> --target <target name>`
101100
- Example: `cmake --build build/win32dgb --target z_generals`
102101
- Or: `cmake --build build/win32int --target g_generals`
103102

103+
### Build with Solutions
104+
105+
- Generate the Visual Studio solution with the appropriate preset (see above):
106+
- Run `cmake --preset win32 -G "Visual Studio 17 2022" -A Win32`
107+
- Navigate to the `build/win32` folder and open the generated solution file.
108+
- Build the project using the Visual Studio interface.
109+
104110
## Troubleshooting
105111

106112
- **Missing DLLs?** Ensure that all required dependencies are installed.

0 commit comments

Comments
 (0)