[cmake] Enable code coverage generation
[cmake] Enable code coverage generation

Allow for building with code coverage enabled. This just copies the
config from here: https://github.com/codecov/example-cpp11-cmake

Coderlane/c-pwm-api,Coderlane/c-pwm-api