43 lines
1.4 KiB
Markdown
43 lines
1.4 KiB
Markdown
|
|
# Shared CMake submodule
|
||
|
|
|
||
|
|
[](https://jrl-cmakemodules.readthedocs.io/en/master/?badge=master)
|
||
|
|
[](https://results.pre-commit.ci/latest/github/jrl-umi3218/jrl-cmakemodules/master)
|
||
|
|
[](https://github.com/psf/black)
|
||
|
|
|
||
|
|
|
||
|
|
This repository is meant to be used as a submodule for any project
|
||
|
|
from CNRS LAAS/HPP or JRL.
|
||
|
|
|
||
|
|
It factorizes CMake mechanisms to provide a uniform look'n feel for
|
||
|
|
all packages.
|
||
|
|
|
||
|
|
|
||
|
|
Please see the documentation on the [wiki] for more information.
|
||
|
|
|
||
|
|
You can also checkout the more complete [documentation] of the modules.
|
||
|
|
|
||
|
|
[wiki]: http://github.com/jrl-umi3218/jrl-cmakemodules/wiki
|
||
|
|
|
||
|
|
[documentation]: http://jrl-cmakemodules.readthedocs.io/en/master/
|
||
|
|
|
||
|
|
## Supported CMake versions
|
||
|
|
|
||
|
|
We currently support CMake >= 3.22
|
||
|
|
|
||
|
|
## pre-commit
|
||
|
|
|
||
|
|
This project use [pre-commit](https://pre-commit.com) and [pre-commit.ci](https://pre-commit.ci).
|
||
|
|
|
||
|
|
You can get a nice documentation directly on those 2 projects, but here is a quickstart:
|
||
|
|
|
||
|
|
```
|
||
|
|
# install pre-commit:
|
||
|
|
python -m pip install pre-commit
|
||
|
|
|
||
|
|
# run all hooks on all files:
|
||
|
|
pre-commit run -a
|
||
|
|
|
||
|
|
# run automatically the hooks on the added / modified files, when you try to commit:
|
||
|
|
pre-commit install
|
||
|
|
```
|