Skip to content

cmake: add a component for each binary

This makes it possible to build/install only the desired binaries regardless of the configuration. For consistency, the component names match the binary names. Kernel and GUI have been renamed.

Additionally it fixes #31762 by installing only the manpages for the configured targets (and includes them in the component installs for each).

Also fixes #31745.

Alternative to #31765 which is (imo) more correct/thorough.

Can be tested using (for ex):

$ cmake -B build
$ cmake --build build -t bitcoind -t bitcoin-cli
$ cmake --install build --component bitcoind
$ cmake --install build --component bitcoin-cli

Merge request reports

Loading