ipaddress 1.1.0
|
Here's how to build the library locally. Technically, this is a header-only library and does not need to be compiled, but for development you will have to collect unit tests and documentation.
To work you will need:
Once the repository is clone, you can configure it using CMake.
Where:
CMAKE_CXX_STANDARD
— The selected standard with which unit tests will be collected. If not specified, the default one in the current build tools will be used.Once configured, you can build tests.
Running unit tests.
Below is a list of all parameters supported by the configuration:
IPADDRESS_ENABLE_CLANG_TIDY
— Enable clang-tidy checks (ON
by default).IPADDRESS_BUILD_TESTS
— Build unit tests (ON
by default).IPADDRESS_BUILD_BENCHMARK
— Build benchmark (OFF
by default).IPADDRESS_BUILD_DOC
— Build doc (ON
by default).IPADDRESS_BUILD_PACKAGES
— Create targets for building packages deb, rpm, etc. (ON
by default).IPADDRESS_BUILD_MODULE
— Build cpp module (OFF
by default).IPADDRESS_TEST_MODULE
— Will use the C++ module to build tests if available (OFF
by default).IPADDRESS_NO_EXCEPTIONS
— Disable exceptions throwing (OFF
by default).IPADDRESS_NO_IPV6_SCOPE
— Disable scope id for ipv6 (OFF
by default).IPADDRESS_IPV6_SCOPE_MAX_LENGTH
— scope id max length (16
by default).To assemble the documentation, you need to install the following tools on the system:
After which you can enable the documentation build in the configuration and run build.
To build the benchmark, follow these steps: