cmake: Add a function to setup all build targets with the same strictness
11 files changed