mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2025-05-14 08:12:19 +00:00
Incorporate suggestions from @VelocityRa
This commit is contained in:
parent
1467b3ed86
commit
552d5efde2
1 changed files with 13 additions and 4 deletions
17
README.md
17
README.md
|
@ -52,15 +52,24 @@ RSP microcode can also be recompiled with this tool. Currently there is no suppo
|
||||||
## Building
|
## Building
|
||||||
This project can be built with CMake 3.20 or above and a C++ compiler that supports C++20. This repo uses git submodules, so be sure to clone recursively (`git clone --recurse-submodules`) or initialize submodules recursively after cloning (`git submodule update --init --recursive`).
|
This project can be built with CMake 3.20 or above and a C++ compiler that supports C++20. This repo uses git submodules, so be sure to clone recursively (`git clone --recurse-submodules`) or initialize submodules recursively after cloning (`git submodule update --init --recursive`).
|
||||||
|
|
||||||
From there, building is identical to any other cmake project, e.g. run `cmake` in the target build folder and point it at the root of this repo, then run `cmake --build .` from that target folder. You can also use different generators if you'd like to work in different IDE's like Xcode or Visual Studio by using the generator flag:
|
From there, building is identical to any other CMake project, e.g:
|
||||||
|
|
||||||
|
1) Configure with `cmake -S . -B build` to create a `build` directory
|
||||||
|
2) Build with `cmake --build build`
|
||||||
|
|
||||||
|
You can also use different generators if you'd like to work in different IDEs.
|
||||||
|
|
||||||
|
Xcode:
|
||||||
```bash
|
```bash
|
||||||
# generates into a folder called `build-cmake`
|
# generates into a folder called `build-cmake`
|
||||||
# open the generated Xcode project in that folder
|
# open the generated Xcode project in that folder
|
||||||
cmake -H. -Bbuild-cmake -GXcode
|
cmake -H . -B build-cmake -G Xcode
|
||||||
|
```
|
||||||
|
Visual Studio:
|
||||||
|
```bash
|
||||||
# generates into a folder called `build-cmake`
|
# generates into a folder called `build-cmake`
|
||||||
# open the generated Visual Studio 2022 solution in that folder
|
# open the generated Visual Studio 2022 solution in that folder
|
||||||
cmake -S . -B "build-cmake" -G "Visual Studio 17 2022"
|
cmake -S . -B build-cmake -G "Visual Studio 17 2022"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Libraries Used
|
## Libraries Used
|
||||||
|
|
Loading…
Add table
Reference in a new issue