From 38f6296fdc8ef98ffba6fdc39c3e870a3d5cff5e Mon Sep 17 00:00:00 2001 From: David Adam Date: Wed, 31 Jul 2019 09:15:23 +0800 Subject: [PATCH] README: add Xcode install instructions Closes #5961. [ci skip] --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ae048545..8fea01a69 100644 --- a/README.md +++ b/README.md @@ -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!