CONTRIBUTING, README: add XCode instructions.

pull/284/head
whitequark 2017-07-21 18:20:59 +00:00
parent 0b79dc277e
commit 32120ea2dc
2 changed files with 15 additions and 2 deletions

View File

@ -202,9 +202,16 @@ The Windows releases include the debug information on the GitHub
### Debugging a custom build
If you are building SolveSpace yourself on a Unix-like platform,
If you are building SolveSpace yourself on macOS, use the XCode
CMake generator, then open the project in XCode as usual, select
the Debug build scheme, and build the project:
cd build
cmake .. -G Xcode [other cmake args...]
If you are building SolveSpace yourself on any Unix-like platform,
configure or re-configure SolveSpace to produce a debug build, and
then re-build it:
then build it:
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug [other cmake args...]

View File

@ -104,6 +104,12 @@ After that, build SolveSpace as following:
cmake .. -DCMAKE_BUILD_TYPE=Release
make
Alternatively, generate an XCode project, open it, and build the "Release" scheme:
mkdir build
cd build
cmake .. -G Xcode
The application is built in `build/bin/solvespace.app`, the graphical interface executable
is `build/bin/solvespace.app/Contents/MacOS/solvespace`, and the command-line interface executable
is `build/bin/solvespace.app/Contents/MacOS/solvespace-cli`.