|
sparrow-ipc 0.2.0
|
Here we describe how to build the project for development purposes on Linux or macOS. For Windows, the instructions are similar.
List of CMake options:
ACTIVATE_LINTER: Create targets to run clang-format and clang-tidy (default: OFF)ACTIVATE_LINTER_DURING_COMPILATION: Run linter during the compilation (default: OFF), requires ACTIVATE_LINTER to be ONSPARROW_IPC_BUILD_DOCS: Build the documentation (default: OFF)SPARROW_IPC_BUILD_TESTS: Build the tests (default: OFF)SPARROW_IPC_BUILD_SHARED: Build sparrow-ipc as a shared library (default: ON)SPARROW_IPC_ENABLE_COVERAGE: Enable coverage reporting (default: OFF)First, we create a conda environment with all required development dependencies:
Then we activate the environment:
Create a build directory and run cmake from it:
And finally, build the project:
If you prefer to use Conan, you can follow these steps: First, install the required dependencies using Conan:
Available Conan options:
build_tests: Build the tests (default: False)generate_documentation: Generate documentation (default: False)Then, run the cmake configuration:
To run the tests, the easy way is to use the cmake targets:
run_tests: Runs all tests without JUnit reportrun_tests_with_junit_report: Runs all tests and generates a JUnit report in the build directoryTo build the documentation, you can use the docs target:
The documentation will be located in the docs/html folder in the build directory. You can open docs/html/index.html in your browser to view it.