aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-09-06 15:58:55 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-09-06 15:58:55 +0100
commit7b04fabe2d95f05a295b1ef30c9aeab7f753ed46 (patch)
tree04bdd0bf68c095d1953945e82e42c2333e1c195f /src
parentbbf95c0cc57147827b9f4577c641b12dd4170e78 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/kernel/CMakeLists.txt12
1 files changed, 9 insertions, 3 deletions
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
)