-
Notifications
You must be signed in to change notification settings - Fork 16
/
CMakeLists.txt
executable file
·253 lines (221 loc) · 6.25 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
cmake_minimum_required(VERSION 3.3)
project(ubicd)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(APPLE)
include_directories(/usr/local/openssl-1.1/include/)
include_directories(/usr/local/opt/openssl@1.1/include/openssl/)
include_directories(/usr/local/opt/openssl@1.1/include/)
include_directories(/usr/local/openssl-1.1/include/openssl/)
include_directories(/usr/local/include/)
include_directories(/usr/local/include/leveldb/)
#link_directories(/usr/local/src/openssl-1.1.0f/)
link_directories(/usr/local/opt/openssl@1.1/lib)
link_libraries(crypto.1.1)
link_directories(/usr/local/opt/pcsc-lite/lib/)
include_directories(/usr/local/opt/pcsc-lite/include/PCSC/)
link_libraries(pcsclite)
elseif(UNIX)
include_directories(/usr/include/openssl/)
link_libraries(pcsclite)
include_directories(/usr/include/PCSC)
link_libraries(crypto)
endif()
include_directories(/usr/include/leveldb)
find_package(OpenSSL 1.1)
if(NOT OPENSSL_FOUND )
include_directories(${OPENSSL_INCLUDE_DIRS})
message(FATAL_ERROR "Could not find OpenSSL v1.1")
endif()
add_definitions(${Boost_LIB_DIAGNOSTIC_DEFINITIONS})
find_package(Boost REQUIRED)
if(NOT Boost_FOUND)
message(FATAL_ERROR "Could not find boost")
endif()
include_directories(${Boost_INCLUDE_DIRS})
include_directories(/usr/include/openssl/)
link_libraries(boost_serialization)
link_libraries(boost_system)
link_libraries(boost_filesystem)
link_libraries(leveldb)
link_libraries(pthread)
link_libraries(ssl)
set(SOURCE_FILES
Crypto/CreateSignature.cpp
Crypto/CreateSignature.h
Crypto/Sha256.cpp
Crypto/Sha256.h
Crypto/VerifySignature.cpp
Crypto/VerifySignature.h
Tools/Hexdump.cpp
Tools/Hexdump.h
Tools/Log.cpp
Tools/Log.h
Tools/Helper.h
Tools/Base64.cpp
Tools/Base64.h
Tools/Time.h
Tools/VectorTool.cpp
Tools/VectorTool.h
Tools/Base58.h
Tools/Base58.cpp
Tools/MetricTool.cpp
Tools/MetricTool.h
NtpEsk/NtpEsk.cpp
NtpEsk/NtpEsk.h
NtpEsk/NtpEskSignatureRequestObject.h
NtpEsk/NtpEskSignatureVerificationObject.h
NtpRsk/NtpRsk.cpp
NtpRsk/NtpRsk.h
NtpRsk/NtpRskSignatureRequestObject.h
NtpRsk/NtpRskSignatureVerificationObject.h
NtpAA/NtpAAVerificationObject.h
Crypto/Ripemd160.cpp
Crypto/Ripemd160.h
Crypto/Hash160.cpp
Crypto/Hash160.h
Crypto/Hash256.cpp
Crypto/Hash256.h
Crypto/Sha1.cpp
Crypto/Sha1.h
Crypto/PassportCrypto.cpp
Crypto/PassportCrypto.h
Crypto/X509Helper.cpp
Crypto/X509Helper.h
CertStore/Cert.cpp
CertStore/Cert.h
CertStore/CertStore.cpp
CertStore/CertStore.h
CertStore/CertHelper.cpp
CertStore/CertHelper.h
Serialization/support/allocators/zeroafterfree.h
Serialization/support/cleanse.h
Serialization/support/clease.cpp
Serialization/endian.h
Serialization/serialize.h
Serialization/prevector.h
Serialization/streams.h
PathSum/PathSum.cpp
PathSum/PathSum.h
PassportReader/LDS/LDSParser.cpp
PassportReader/LDS/LDSParser.h
PassportReader/LDS/Iso19794Parser.cpp
PassportReader/LDS/Iso19794Parser.h
PassportReader/PKCS7/PKCS7Parser.cpp
PassportReader/PKCS7/PKCS7Parser.h
PassportReader/Reader/BacKeys.cpp
PassportReader/Reader/BacKeys.h
PassportReader/Reader/Reader.cpp
PassportReader/Reader/Reader.h
PassportReader/Reader/SessionKeys.cpp
PassportReader/Reader/SessionKeys.h
PassportReader/Reader/NFC.cpp
PassportReader/Reader/NFC.h
Transaction/Transaction.cpp
Transaction/Transaction.h Block/Block.cpp
Transaction/TxIn.cpp
Transaction/TxIn.h
Transaction/TxOut.cpp
Transaction/TxOut.h
AddressStore.cpp
AddressStore.h
main.cpp
Block/Block.h
Chain.cpp
Chain.h
Block/BlockHeader.cpp
Block/BlockHeader.h
Address.cpp
Address.h
UAmount.h
ChainParams.h
MerkleTree.cpp
MerkleTree.h
Wallet.cpp
Wallet.h
Crypto/ECCtools.cpp
Crypto/ECCtools.h
FS/FS.cpp
FS/FS.h
Test/Test.cpp
Test/Test.h
Block/BlockStore.cpp
Block/BlockStore.h
BlockCreator/Mint.cpp
BlockCreator/Mint.h
UBICalculator.cpp
UBICalculator.h
Loader.cpp
Loader.h
TxPool.cpp
TxPool.h
Network/Network.cpp
Network/Network.h
Network/NetworkCommands.h
Network/Peers.h
Network/NetworkMessage.h
Network/NetworkMessageHandler.cpp
Network/NetworkMessageHandler.h
Network/BanList.h
Network/BlockCache.h
DSCAttachedPassportCounter.cpp
DSCAttachedPassportCounter.h
DB/DB.cpp
DB/DB.h
AddressHelper.h
API/Api.cpp
API/Api.h
API/ApiServer.cpp
API/ApiServer.h
Network/Server.h
Network/Peers.cpp
Consensus/Vote.h
Consensus/VoteStore.h
Consensus/Delegate.cpp
Consensus/Delegate.h
App.h
Transaction/TransactionHelper.cpp
Transaction/TransactionHelper.h
Transaction/TransactionError.h
Transaction/TransactionVerify.cpp
Transaction/TransactionVerify.h
Transaction/TransactionApply.cpp
Transaction/TransactionApply.h
WebInterface/WebInterface.cpp
WebInterface/WebInterface.h
Config.cpp
Config.h
Fixes.cpp
Fixes.h
Scripts/UScript.h
Scripts/AddCertificateScript.h
Scripts/NtpskAlreadyUsedScript.h
Scripts/KycRequestScript.h
Scripts/PkhInScript.h
Scripts/DeactivateCertificateScript.h
KYC/MRZResponseObject.h
KYC/MRZParser.cpp
KYC/MRZParser.h)
add_executable(ubicd ${SOURCE_FILES})
set(SOURCE_FILES_CLI
CLI/main.cpp
CLI/HttpClient.cpp
CLI/HttpClient.h
CLI/ApiKey.cpp
CLI/ApiKey.h
CLI/FS/FS.h
CLI/FS/FS.cpp
)
if(UNIX AND NOT APPLE)
set(SOURCE_FILES_CLI
CLI/main.cpp
CLI/HttpClient.cpp
CLI/HttpClient.h
CLI/ApiKey.cpp
CLI/ApiKey.h
CLI/FS/FS.h
CLI/FS/FS.cpp
)
add_executable(ubic ${SOURCE_FILES_CLI})
install(CODE "execute_process(COMMAND Static/install.sh)")
endif()