Split the installed cmake target file to allow packaging into sub-packages
If all targets are defined in the same package, cmake complains about target missing files if the installation is split into sub-packages and the sub-packages are not installed. This MR splits the cmake target file into a file per sub-package.