[cmake] Fix install functions

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

Merge request reports