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 2024-09-06 15:58:55 +01:00
parent bbf95c0cc5
commit 7b04fabe2d
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -100,7 +100,13 @@ set_target_properties(bitcoinkernel PROPERTIES
include(GNUInstallDirs) include(GNUInstallDirs)
install(TARGETS bitcoinkernel install(TARGETS bitcoinkernel
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} RUNTIME
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} DESTINATION ${CMAKE_INSTALL_BINDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Kernel
LIBRARY
DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT Kernel
ARCHIVE
DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT Kernel
) )