mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 14:34:49 +01:00
cmake: Build univalue
static library
This commit is contained in:
parent
752747fda8
commit
958971f476
2 changed files with 17 additions and 0 deletions
|
@ -28,6 +28,8 @@ target_link_libraries(bitcoin_clientversion
|
|||
)
|
||||
add_dependencies(bitcoin_clientversion generate_build_info)
|
||||
|
||||
add_subdirectory(univalue)
|
||||
|
||||
#=============================
|
||||
# secp256k1 subtree
|
||||
#=============================
|
||||
|
|
15
src/univalue/CMakeLists.txt
Normal file
15
src/univalue/CMakeLists.txt
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Copyright (c) 2023-present The Bitcoin Core developers
|
||||
# Distributed under the MIT software license, see the accompanying
|
||||
# file COPYING or https://opensource.org/license/mit/.
|
||||
|
||||
add_library(univalue STATIC EXCLUDE_FROM_ALL
|
||||
lib/univalue.cpp
|
||||
lib/univalue_get.cpp
|
||||
lib/univalue_read.cpp
|
||||
lib/univalue_write.cpp
|
||||
)
|
||||
target_include_directories(univalue
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
)
|
||||
target_link_libraries(univalue PRIVATE core_interface)
|
Loading…
Add table
Reference in a new issue