Skip to content

Commit 4dd198b

Browse files
authored
Updated windows instructions
1 parent 7c536ce commit 4dd198b

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ Awesome! [Here](https://github.com/alesbe/sorting-visualizer/wiki) you can find
5252
- Run `./install.sh`
5353

5454
### 🖥️ Windows / MacOS
55-
The libraries included with the project only work with gcc compiler, for now, if you want to use it on Windows or macOS, you'll need to [download sfml](https://www.sfml-dev.org/download/sfml/2.5.1/) and compile the source code located in `/src` yourself.
55+
#### [Download from releases](https://github.com/alesbe/sorting-visualizer/releases/)
5656

57-
Once you have compiled the source files you can set `SFML_DIR` in `CMakeLists.txt` to the path which contains SFMLConfig.cmake. This will depend on where you have installed SFML to, for instance `C:/Program Files (x86)/SFML/lib/cmake/SFML`. From the root directory of the repository run `mkdir build cd build` and then run `cmake ..` to generate make files. For a list of generators you can type`cmake -G`. For instance if you want to build for the latest version of Visual Studio run `cmake -G 'Visual Studio 17 2022' ..` from within `/build`.
57+
If you want to compile the project by yourself you need to follow the next steps:
58+
1. Download SFML from the [official website](https://www.sfml-dev.org/download/sfml/2.6.1/)
59+
2. Download [CMake](https://cmake.org/download/)
60+
3. Clone the repository
61+
4. Open `CMakeLists.txt` and locate the variable `SFML_DIR`. Set the path to the route where the SFML CMake files are located. For instance `C:/Program Files (x86)/SFML/lib/cmake/SFML`.
62+
5. From the root directory of the repository, run:
63+
```
64+
mkdir build cd build
65+
cmake ..
66+
cmake -G 'Visual Studio 17 2022' ..
67+
```
68+
6. In the `/build` directory should be a Visual Studio solution. Now you can open the solution and compile the file with the play button as usual!
69+
70+
_Note: If you don't want to use Visual Studio 2022, download SFML for your target compiler and change the cmake generator in step 6. You can check the list of generators with cmake -G_

0 commit comments

Comments
 (0)