From 7b04fabe2d95f05a295b1ef30c9aeab7f753ed46 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 6 Sep 2024 15:58:55 +0100 Subject: build: Introduce "Kernel" installation component This change enables building and installing only `libbitcoinkernel`, without the need to disable other targets during the project build system generation. --- src/kernel/CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/kernel/CMakeLists.txt b/src/kernel/CMakeLists.txt index ffb1a857ac..d22d1afc8f 100644 --- a/src/kernel/CMakeLists.txt +++ b/src/kernel/CMakeLists.txt @@ -100,7 +100,13 @@ set_target_properties(bitcoinkernel PROPERTIES include(GNUInstallDirs) install(TARGETS bitcoinkernel - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME + DESTINATION ${CMAKE_INSTALL_BINDIR} + COMPONENT Kernel + LIBRARY + DESTINATION ${CMAKE_INSTALL_LIBDIR} + COMPONENT Kernel + ARCHIVE + DESTINATION ${CMAKE_INSTALL_LIBDIR} + COMPONENT Kernel ) -- cgit v1.2.3