-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
97 lines (71 loc) · 2.89 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
cmake_minimum_required(VERSION 3.9)
project(SpyCBlock)
set(CMAKE_CXX_STANDARD 14)
#Glog
find_package(glog 0.3.5 REQUIRED)
#bitcoin rpc lib
find_library(bitcoinapi 0.3 REQUIRED)
#ZLIB
find_package(ZLIB)
find_package(OpenMP)
find_package(Curses REQUIRED)
include_directories(${CURSES_INCLUDE_DIR})
add_executable(
${PROJECT_NAME}
src/core/ParserMain.cpp
src/core/SpyCBlock.cpp
src/core/ConfiguratorSingleton.cpp
src/util/uint256.cpp
src/util/strencodings.cpp
src/util/prevector.cpp
src/structure/block/block.cpp
src/structure/block/blockHeader.cpp
src/structure/transaction/RawTransaction.cpp
src/structure/transaction/TransactionOutput.cpp
src/structure/transaction/TransactionInput.cpp
src/structure/transaction/TransactionWitness.cpp
src/structure/script/scriptCode.cpp
src/structure/type/Outpoint.cpp
src/structure/type/DVarInt.cpp
src/structure/type/DScript.cpp
src/structure/type/Outpoint.cpp
src/persistence/DAOException.cpp
src/persistence/SerializationUtil.cpp
src/persistence/json/DAOJson.cpp
src/persistence/graph/DAOManagerGraph.cpp
src/persistence/graph/transactions/DAOTransactionsGraph.cpp
src/persistence/graph/transactions/TransactionsRawGraph.cpp
src/crypto/UtilCrypto.cpp
src/crypto/CryptoCore.cpp
#cpp-properties file include
include/cpp-properties/src/Properties.cpp
include/cpp-properties/src/PropertiesParser.cpp
include/cpp-properties/src/PropertiesUtils.cpp
#include bitcoin-cryptography-library
include/bitcoin-cryptography-library/cpp/Sha256.cpp
include/bitcoin-cryptography-library/cpp/Sha256Hash.cpp
include/bitcoin-cryptography-library/cpp/Utils.cpp
#include spycblocrpc
include/spycblockrpc/src/core/graph/TransactionGraph.cpp
include/spycblockrpc/src/core/graph/WrapperInformations.cpp
include/spycblockrpc/src/ConfiguratorSingleton.cpp
include/spycblockrpc/src/commands/DecodeScriptCommand.cpp
include/spycblockrpc/src/commands/DecodeRawTransaction.cpp
include/spycblockrpc/src/commands/HeightBlockchainCommand.cpp
include/spycblockrpc/src/commands/DecodeBlockAtIndexCommand.cpp
#inlcude progressbar
include/progressbar/bin/progressbar.c
include/progressbar/bin/statusbar.c
)
#using glog
target_link_libraries(${PROJECT_NAME} glog::glog)
##using filesystem
target_link_libraries(${PROJECT_NAME} stdc++fs)
#bitcoin rpc lib
target_link_libraries(${PROJECT_NAME} bitcoinapi)
#ZLIB
target_link_libraries(${PROJECT_NAME} ${ZLIB_LIBRARIES})
target_link_libraries(${PROJECT_NAME} OpenMP::OpenMP_CXX)
target_link_libraries(${PROJECT_NAME} ${CURSES_LIBRARIES})
#todo test this
target_include_directories(${PROJECT_NAME} PUBLIC include/rapidjson/include)