2018-10-29 00:47:18 +03:00
== System installation ==
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.
== Building the examples and tests ==
2018-10-29 10:13:14 +03:00
It is preferable to build out of source. Make a build directory somewhere, and then
do the following, where `${CXXOPTS_DIR}` is the path that you checked out `cxxopts`
to:
2014-10-13 02:20:20 +04:00
2018-10-29 10:13:14 +03:00
cmake ${CXXOPTS_DIR}
make
2014-10-13 02:20:20 +04:00
You can use another build tool, such as ninja.
2018-10-29 10:13:14 +03:00
cmake -G Ninja ${CXXOPTS_DIR}
ninja
2018-10-29 00:47:18 +03:00
2018-10-30 00:02:32 +03:00
To run the tests, you have to configure `cxxopts` with another flag:
cmake -D CXXOPTS_BUILD_TESTS=On ${CXXOPTS_DIR}
make
make test