/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v29.3
cmake/module/InstallBinaryComponent.cmake
26 строк
816 B
Cory Fields
cmake: add and use install_binary_component
13 фев 2025, 21:14
13 фев 2025, 21:14
2e0c925
Код
Авторство
О чём код?
# Copyright (c) 2025-present The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://opensource.org/license/mit/. include_guard(GLOBAL) include(GNUInstallDirs) function(install_binary_component component) cmake_parse_arguments(PARSE_ARGV 1 IC # prefix "HAS_MANPAGE" # options "" # one_value_keywords "" # multi_value_keywords ) set(target_name ${component}) install(TARGETS ${target_name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${component} ) if(INSTALL_MAN AND IC_HAS_MANPAGE) install(FILES ${PROJECT_SOURCE_DIR}/doc/man/${target_name}.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT ${component} ) endif() endfunction()