json
json copied to clipboard
Add CMake presets
Add a CMakePresets.json
file and add CMakeUserPresets.json
to .gitignore
.
Usage:
- List presets:
cmake --list-presets
- Configure:
cmake --preset gcc
- Build:
cmake --build --preset gcc
- Test:
ctest --preset gcc
Please share your suggestions for useful presets.
To do:
- [ ] Default CMake options to environment variables and document.
- [x] Add warning flags from CI.