mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
cmake: Build bitcoin_consensus
library
This commit is contained in:
parent
809a2f1929
commit
3118e40c61
1 changed files with 21 additions and 0 deletions
|
@ -56,3 +56,24 @@ endforeach()
|
|||
set(CMAKE_EXPORT_COMPILE_COMMANDS OFF)
|
||||
add_subdirectory(secp256k1)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
# Stable, backwards-compatible consensus functionality.
|
||||
add_library(bitcoin_consensus STATIC EXCLUDE_FROM_ALL
|
||||
arith_uint256.cpp
|
||||
consensus/merkle.cpp
|
||||
consensus/tx_check.cpp
|
||||
hash.cpp
|
||||
primitives/block.cpp
|
||||
primitives/transaction.cpp
|
||||
pubkey.cpp
|
||||
script/interpreter.cpp
|
||||
script/script.cpp
|
||||
script/script_error.cpp
|
||||
uint256.cpp
|
||||
)
|
||||
target_link_libraries(bitcoin_consensus
|
||||
PRIVATE
|
||||
core_interface
|
||||
bitcoin_crypto
|
||||
secp256k1
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue