Commit 299750a35d6bef6cb9a3a044a71d14de178f27fd
1 parent
3f2d7053
Make INSTALL a bit more clearer
Showing
1 changed file
with
7 additions
and
5 deletions
INSTALL
| ... | ... | @@ -4,15 +4,17 @@ This library is header only. So you can either copy `include/cxxopts.hpp` to `/u |
| 4 | 4 | |
| 5 | 5 | == Building the examples and tests == |
| 6 | 6 | |
| 7 | -It is preferable to build out of source. | |
| 7 | +It is preferable to build out of source. Make a build directory somewhere, and then | |
| 8 | +do the following, where `${CXXOPTS_DIR}` is the path that you checked out `cxxopts` | |
| 9 | +to: | |
| 8 | 10 | |
| 9 | -cmake ${CXXOPTS_DIR} | |
| 10 | -make | |
| 11 | + cmake ${CXXOPTS_DIR} | |
| 12 | + make | |
| 11 | 13 | |
| 12 | 14 | You can use another build tool, such as ninja. |
| 13 | 15 | |
| 14 | -cmake -G Ninja ${CXXOPTS_DIR} | |
| 15 | -ninja | |
| 16 | + cmake -G Ninja ${CXXOPTS_DIR} | |
| 17 | + ninja | |
| 16 | 18 | |
| 17 | 19 | |
| 18 | 20 | To run the tests, run `make test`. | ... | ... |