diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e0eb22cca89..c94b476f652 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -28,6 +28,8 @@ target_link_libraries(bitcoin_clientversion ) add_dependencies(bitcoin_clientversion generate_build_info) +add_subdirectory(univalue) + #============================= # secp256k1 subtree #============================= diff --git a/src/univalue/CMakeLists.txt b/src/univalue/CMakeLists.txt new file mode 100644 index 00000000000..ef7f7362f92 --- /dev/null +++ b/src/univalue/CMakeLists.txt @@ -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 + $ +) +target_link_libraries(univalue PRIVATE core_interface)