File tree 1 file changed +19
-13
lines changed
1 file changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -13,25 +13,31 @@ add_subdirectory(univalue)
13
13
add_subdirectory (util)
14
14
15
15
16
+ # These sources are to be compiled with different compile definitions.
17
+ set (bitcoin_consensus_sources
18
+ ${CMAKE_CURRENT_SOURCE_DIR} /arith_uint256.cpp
19
+ ${CMAKE_CURRENT_SOURCE_DIR} /consensus/merkle.cpp
20
+ ${CMAKE_CURRENT_SOURCE_DIR} /consensus/tx_check.cpp
21
+ ${CMAKE_CURRENT_SOURCE_DIR} /hash.cpp
22
+ ${CMAKE_CURRENT_SOURCE_DIR} /primitives/block.cpp
23
+ ${CMAKE_CURRENT_SOURCE_DIR} /primitives/transaction.cpp
24
+ ${CMAKE_CURRENT_SOURCE_DIR} /pubkey.cpp
25
+ ${CMAKE_CURRENT_SOURCE_DIR} /script/interpreter.cpp
26
+ ${CMAKE_CURRENT_SOURCE_DIR} /script/script.cpp
27
+ ${CMAKE_CURRENT_SOURCE_DIR} /script/script_error.cpp
28
+ ${CMAKE_CURRENT_SOURCE_DIR} /uint256.cpp
29
+ ${CMAKE_CURRENT_SOURCE_DIR} /util/strencodings.cpp
30
+ )
31
+
16
32
# Stable, backwards-compatible consensus functionality
17
33
# also exposed as a shared library and/or a static one.
18
- add_library (bitcoin_consensus OBJECT EXCLUDE_FROM_ALL
19
- arith_uint256.cpp
20
- consensus/merkle.cpp
21
- consensus/tx_check.cpp
22
- hash.cpp
23
- primitives/block.cpp
24
- primitives/transaction.cpp
25
- pubkey.cpp
26
- script/interpreter.cpp
27
- script/script.cpp
28
- script/script_error.cpp
29
- uint256.cpp
30
- util/strencodings.cpp
34
+ add_library (bitcoin_consensus STATIC EXCLUDE_FROM_ALL
35
+ ${bitcoin_consensus_sources}
31
36
)
32
37
target_link_libraries (bitcoin_consensus
33
38
PRIVATE
34
39
core
40
+ bitcoin_crypto
35
41
secp256k1
36
42
)
37
43
You can’t perform that action at this time.
0 commit comments