README: add Xcode install instructions

Closes #5961.

[ci skip]
This commit is contained in:
David Adam 2019-07-31 09:15:23 +08:00
parent 5b90fa0bda
commit 38f6296fdc

View File

@ -109,6 +109,8 @@ Sphinx is also optionally required to build the documentation from a cloned git
### Building from source (all platforms) - Makefile generator
To install into `/usr/local`, run:
```bash
mkdir build; cd build
cmake ..
@ -116,6 +118,8 @@ make
sudo make install
```
The install directory can be changed using the `-DCMAKE_INSTALL_PREFIX` parameter for `cmake`.
### Building from source (macOS) - Xcode
```bash
@ -123,7 +127,15 @@ mkdir build; cd build
cmake .. -G Xcode
```
An Xcode project will now be available in the `build` subdirectory.
An Xcode project will now be available in the `build` subdirectory. You can open it with Xcode,
or run the following to build and install in `/usr/local`:
```bash
xcodebuild
xcodebuild -scheme install
```
The install directory can be changed using the `-DCMAKE_INSTALL_PREFIX` parameter for `cmake`.
### Help, it didn't build!