Skip to content

Commit 14c7646

Browse files
authored
Update README.md
Added instructions for building the project in visual studio if that is the person's preferred method of building and running the project
1 parent dce6991 commit 14c7646

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,21 +81,29 @@ set(HEADERS
8181
```
8282

8383
### 4. Build the Project
84-
Navigate to the project root and run the following commands:
84+
You have two common ways to build and run the project: **Visual Studio** or the **Command Line**.
8585

86-
#### Configure CMake
87-
```sh
88-
cmake --preset my-build
89-
```
90-
(`cmake --preset my-build` will create a `build/` directory automatically)
86+
---
87+
88+
#### 🔷 Method 1: Using Visual Studio
89+
90+
1. Open the `.sln` file located inside the `build/` directory.
91+
2. In the **Solution Explorer**, right-click on the project named `game` and select **"Set as Startup Project"**.
92+
3. Press `Ctrl + F5` or click **Debug → Start Without Debugging** to run the project.
93+
94+
✅ That’s it! Visual Studio will automatically build and run the project.
95+
96+
---
97+
98+
#### ⚙️ Method 2: Using Command Line
99+
100+
Make sure you're in the root of the project and then run the following:
91101

92102
#### Change to the Build Directory
93103
```sh
94104
cd "./build"
95105
```
96106

97-
In the build directory run:
98-
99107
#### Build the Project
100108
```sh
101109
cmake --build .

0 commit comments

Comments
 (0)