mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-31 10:00:53 +02:00
cmake: Build bitcoin_consensus
library
This commit is contained in:
@@ -56,3 +56,24 @@ endforeach()
|
|||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS OFF)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS OFF)
|
||||||
add_subdirectory(secp256k1)
|
add_subdirectory(secp256k1)
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
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
|
||||||
|
)
|
||||||
|
Reference in New Issue
Block a user