json icon indicating copy to clipboard operation
json copied to clipboard

Add CMake presets

Open falbrechtskirchinger opened this issue 2 years ago • 1 comments

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.

falbrechtskirchinger avatar Jun 23 '22 15:06 falbrechtskirchinger

Coverage Status

Coverage remained the same at 100.0% when pulling 0c05433e2fd6f70c3d9cfeed2ff2477d4119b3d9 on falbrechtskirchinger:cmake-presets into 954b10ad3baa5d92bb9cd5bb93c7258433cd2bb2 on nlohmann:develop.

coveralls avatar Jun 23 '22 17:06 coveralls