Thank you for your interest in contributing to xnode! This document provides guidelines and instructions for contributing to this project.
xnode uses CMake as its build system. Follow these steps to build the project:
- CMake 3.14 or higher
- C++11 compatible compiler (GCC, Clang, MSVC)
-
Clone the repository:
git clone https://github.com/plikus/xnode.git cd xnode -
Create a build directory:
mkdir build cd build -
Configure the project:
cmake ..
-
Build the project:
cmake --build . -
Run the tests:
ctest
The following options can be used to customize the build:
XNODE_BUILD_TESTS- Build tests (ON by default)
Example:
cmake -DXNODE_BUILD_TESTS=OFF ..The project includes a comprehensive test suite. To run the tests:
cd build
ctestTo run specific tests with verbose output:
ctest --verbose --tests-regex TestRegexPlease follow these style guidelines when contributing:
- Use consistent indentation (4 spaces)
- Follow the existing naming conventions
- Add comments for complex code sections
- Keep lines to a reasonable length (around 100 characters)
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run the tests to ensure they still pass
- Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
When reporting issues, please include:
- A clear description of the problem
- Steps to reproduce the issue
- Expected vs. actual behavior
- System information (OS, compiler, CMake version)
By contributing, you agree that your contributions will be licensed under the project's BSD license.