Hi everyone,
As Python is one of the most popular languages, many C++ projects end up using Python bindings of some sort. Pytest and Sphinx are very popular frameworks, so many CMake modules have been written, and most projects end up including a copy of these modules or using some hardcoded paths.
In an attempt to standardize the handling of Python packages via CMake, I wrote two Python packages to manage the installation and update of CMake configs for Pytest and Sphinx:
- GitHub - python-cmake/pytest-cmake: Pytest module for CMake
- GitHub - python-cmake/sphinx-cmake: Sphinx module for CMake
It uses the pip
package management, providing a module for each package and automatically generating a configuration based on the package version found.
> pip install pytest-cmake
> pip install sphinx-cmake
Let me know what you think!