[fix] Update cmake install headers

Merged Timo Koch requested to merge fix/install-headers into master

Needs backport to 3.2

Edited by Timo Koch

Merge request reports