cmake: add and use install_binary_component

Add a separate component for each binary for fine-grained installation options.

Also install the man pages for only for the targets enabled.
This commit is contained in:
Cory Fields
2025-02-11 18:23:44 +00:00
parent 0264c5d86c
commit 2e0c92558e
7 changed files with 40 additions and 40 deletions

View File

@@ -81,6 +81,4 @@ add_test(NAME bench_sanity_check_high_priority
COMMAND bench_bitcoin -sanity-check -priority-level=high
)
install(TARGETS bench_bitcoin
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
install_binary_component(bench_bitcoin)