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.
This commit is contained in:
Hennadii Stepanov committed 2024-09-06 15:58:55 +01:00
1 parent bbf95c0cc5
commit 7b04fabe2d
1 file changed
+9 -3
+9 -3
View File
@@ -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
)