🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
656 B

  1. == System installation ==
  2. 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.
  3. == Building the examples and tests ==
  4. It is preferable to build out of source. Make a build directory somewhere, and then
  5. do the following, where `${CXXOPTS_DIR}` is the path that you checked out `cxxopts`
  6. to:
  7. cmake ${CXXOPTS_DIR}
  8. make
  9. You can use another build tool, such as ninja.
  10. cmake -G Ninja ${CXXOPTS_DIR}
  11. ninja
  12. To run the tests, you have to configure `cxxopts` with another flag:
  13. cmake -D CXXOPTS_BUILD_TESTS=On ${CXXOPTS_DIR}
  14. make
  15. make test