Provide way to embed version string in code

This patchset is submitted here to update the CMake modules; opm-core does not use it.

@atgeirr Hold until we see how OPM/opm-benchmarks#17 turns out