Skip to content

Commit ffd10d1

Browse files
committed
cmake: Build bitcoin_consensus library
1 parent d028a49 commit ffd10d1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/CMakeLists.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,22 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
99
add_subdirectory(crypto)
1010
add_subdirectory(univalue)
1111
add_subdirectory(util)
12+
13+
14+
# Stable, backwards-compatible consensus functionality
15+
# also exposed as a shared library and/or a static one.
16+
add_library(bitcoin_consensus OBJECT EXCLUDE_FROM_ALL
17+
arith_uint256.cpp
18+
consensus/merkle.cpp
19+
consensus/tx_check.cpp
20+
hash.cpp
21+
primitives/block.cpp
22+
primitives/transaction.cpp
23+
pubkey.cpp
24+
script/interpreter.cpp
25+
script/script.cpp
26+
script/script_error.cpp
27+
uint256.cpp
28+
util/strencodings.cpp
29+
)
30+
target_link_libraries(bitcoin_consensus PRIVATE secp256k1)

0 commit comments

Comments
 (0)