Commit 3f2d70530219e09fe7e563f86126b0d3b228a60d
1 parent
f75feab9
Improve build and test instructions
Showing
1 changed file
with
9 additions
and
1 deletions
INSTALL
| 1 | +== System installation == | ||
| 2 | + | ||
| 3 | +This library is header only. So you can either copy `include/cxxopts.hpp` to `/usr/include` or `/usr/local/include`, or add `include` to your search path. | ||
| 4 | + | ||
| 5 | +== Building the examples and tests == | ||
| 6 | + | ||
| 1 | It is preferable to build out of source. | 7 | It is preferable to build out of source. |
| 2 | 8 | ||
| 3 | cmake ${CXXOPTS_DIR} | 9 | cmake ${CXXOPTS_DIR} |
| 4 | make | 10 | make |
| 5 | 11 | ||
| 6 | - | ||
| 7 | You can use another build tool, such as ninja. | 12 | You can use another build tool, such as ninja. |
| 8 | 13 | ||
| 9 | cmake -G Ninja ${CXXOPTS_DIR} | 14 | cmake -G Ninja ${CXXOPTS_DIR} |
| 10 | ninja | 15 | ninja |
| 16 | + | ||
| 17 | + | ||
| 18 | +To run the tests, run `make test`. |