@@ -5,7 +5,7 @@ code using Visual Studio 2022.
55For build using solutions and more advanced build configurations, see below.
66
77- [ Prerequisites] ( #prerequisites )
8- - [ Build through Visual Studio 2022] ( #1-prepare-the-project )
8+ - [ Build through Visual Studio 2022] ( #build-through-visual-studio-2022 )
99- [ Build through CMake target view] ( #build-through-cmake-target-view )
1010- [ Build using command line] ( #build-using-command-line )
1111- [ Build using solutions] ( #build-with-solutions )
@@ -27,7 +27,9 @@ For build using solutions and more advanced build configurations, see below.
2727 - Clone or download the source code
2828 repository: [ TheSuperHackers - GeneralsGameCode] ( https://github.com/TheSuperHackers/GeneralsGameCode.git ) .
2929
30- ## Steps
30+ ---
31+
32+ ## Build through Visual Studio 2022
3133
3234### 1. Prepare the project
3335
@@ -59,17 +61,19 @@ page.
5961- Install the game executable in the game directory by clicking on the ` Install ` in ` Build ` menu. This will copy the
6062 executable to the retail game directory.
6163
62- ## Additional Steps
64+ ---
6365
64- ### Build through CMake target view
66+ ## Build through CMake target view
6567
6668- In the Solution Explorer, click on 'switch view' and select 'CMake Targets View'.
6769- Expand the 'Genzh' project and right-click on the target you want to build.
6870- Select 'Build' to compile the target.
6971
7072![ image] ( https://github.com/user-attachments/assets/adb296b6-ae05-4a23-9aa7-2a9c56b9e8e9 )
7173
72- ### Build using command line
74+ ---
75+
76+ ## Build using command line
7377
7478You need to install [ CMake] ( https://cmake.org/download/ ) and [ Ninja] ( https://github.com/ninja-build/ninja/releases )
7579to build the project from the command line.
@@ -85,7 +89,7 @@ to build the project from the command line.
8589> Alternatively, you can skip the terminal setup and simply open the "x86 Native Tools Command Prompt for
8690> VS 2022" from the Start menu. Once opened, navigate to the project directory in the terminal and proceed
8791> to run the commands below.
88-
92+ <!-- markdownlint-disable-next-line -- >
8993- #### 1. ** Release Build**
9094
9195 - ** Choose the build configuration:**
@@ -109,13 +113,19 @@ to build the project from the command line.
109113 - Example: ` cmake --build build/win32dgb --target z_generals `
110114 - Or: ` cmake --build build/win32int --target g_generals `
111115
112- ### Build with Solutions
116+ For more CMake options, see the [ CMake Guide] ( cmake_guide ) .
117+
118+ ---
119+
120+ ## Build with Solutions
113121
114122- Generate the Visual Studio solution with the appropriate preset (see above):
115123- Run ` cmake --preset win32 -G "Visual Studio 17 2022" -A Win32 `
116124- Navigate to the ` build/win32 ` folder and open the generated solution file.
117125- Build the project using the Visual Studio interface.
118126
127+ ---
128+
119129## Troubleshooting
120130
121131- ** Missing DLLs?** Ensure that all required dependencies are installed.
0 commit comments