Fixes #397.
CMake 4.5 expects every generated file that a target installs to be the output of a custom command attached to exactly one target. Otherwise it emits the author warning reported in #397 for the Makefile generators.
capnp_generate_cpp() lists both proxy.capnp.c++ and proxy.capnp.h as
outputs of one command, which ended up attached to both mp_headers and
multiprocess. Adding add_dependencies(multiprocess mp_headers), as the
warning suggests, does not help: the command is still attached to two targets.
This change runs the same capnp compile command directly, with
proxy.capnp.c++ as a byproduct, so the command is attached only to
mp_headers. multiprocess no longer lists the generated header as a source
(it is still installed through PUBLIC_HEADER) and depends on mp_headers
so the generated source exists before it is compiled. mp_headers still only
generates headers and does not compile anything.
Tested with CMake 4.5.0: the warning is gone with Makefile and Ninja generators.