cmake: Build univalue static library

This commit is contained in:
Hennadii Stepanov committed 2024-08-16 19:27:38 +01:00
1 parent 752747fda8
commit 958971f476
2 files changed
+17

No files matched your search

+2
View File
@@ -28,6 +28,8 @@ target_link_libraries(bitcoin_clientversion
)
add_dependencies(bitcoin_clientversion generate_build_info)
add_subdirectory(univalue)
#=============================
# secp256k1 subtree
#=============================
+15
View 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)