mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
0195152e05
* Import cxxopts to replace getopts usage * Add visual studio build things * Fixup abseil build parts * Replace __attribute__((unused)) with ABSL_ATTRIBUTE_UNUSED * Fixup minor windows build issues * Replace getopts usage * Temporarily fixup .rc files * More minor windows fixes * Get a working build * Revert .rc files * Revert changes to nodedb
24 lines
656 B
Plaintext
24 lines
656 B
Plaintext
== 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 ==
|
|
|
|
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:
|
|
|
|
cmake ${CXXOPTS_DIR}
|
|
make
|
|
|
|
You can use another build tool, such as ninja.
|
|
|
|
cmake -G Ninja ${CXXOPTS_DIR}
|
|
ninja
|
|
|
|
|
|
To run the tests, you have to configure `cxxopts` with another flag:
|
|
cmake -D CXXOPTS_BUILD_TESTS=On ${CXXOPTS_DIR}
|
|
make
|
|
make test
|