-
Notifications
You must be signed in to change notification settings - Fork 34
/
CMakeLists.txt
148 lines (134 loc) · 2.76 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
#
# Copyright Quadrivium LLC
# All Rights Reserved
# SPDX-License-Identifier: Apache-2.0
#
add_library(kagome_crypto common.cpp)
target_link_libraries(kagome_crypto
OpenSSL::Crypto
logger
)
kagome_install(kagome_crypto)
add_library(hasher
hasher/hasher_impl.cpp
)
target_link_libraries(hasher
blake2
twox
sha
keccak
)
kagome_install(hasher)
add_library(sr25519_types
sr25519_types.cpp
)
target_link_libraries(sr25519_types
mp_utils
blob
schnorrkel::schnorrkel
kagome_crypto
)
kagome_install(sr25519_types)
add_library(ed25519_types
ed25519_types.cpp
ed25519_types.hpp
)
target_link_libraries(ed25519_types
blob
scale::scale
schnorrkel::schnorrkel
kagome_crypto
)
kagome_install(ed25519_types)
add_library(vrf_provider
vrf/vrf_provider_impl.cpp
)
target_link_libraries(vrf_provider
mp_utils
sr25519_types
blob
p2p::p2p_random_generator # generator from libp2p
kagome_crypto
)
kagome_install(vrf_provider)
add_library(sr25519_provider
sr25519/sr25519_provider_impl.cpp
)
target_link_libraries(sr25519_provider
p2p::p2p_random_generator # generator from libp2p
sr25519_types
)
kagome_install(sr25519_provider)
add_library(bandersnatch_provider
bandersnatch/bandersnatch_provider_impl.cpp
)
target_link_libraries(bandersnatch_provider
bandersnatch_vrfs::bandersnatch_vrfs
)
kagome_install(bandersnatch_provider)
add_library(bandersnatch_vrf
bandersnatch/vrf.cpp
)
target_link_libraries(bandersnatch_vrf
bandersnatch_vrfs::bandersnatch_vrfs
)
kagome_install(bandersnatch_vrf)
add_library(ecdsa_provider
ecdsa/ecdsa_provider_impl.cpp
ecdsa_types.cpp
)
target_link_libraries(ecdsa_provider
hasher
logger
secp256k1_provider
kagome_crypto
)
kagome_install(ecdsa_provider)
add_library(ed25519_provider
ed25519/ed25519_provider_impl.cpp
)
target_link_libraries(ed25519_provider
ed25519_types
hasher
logger
schnorrkel::schnorrkel
)
kagome_install(ed25519_provider)
add_library(secp256k1_provider
secp256k1/secp256k1_provider_impl.cpp
)
target_link_libraries(secp256k1_provider
PUBLIC
OpenSSL::Crypto
OpenSSL::SSL
blob
libsecp256k1::secp256k1
scale::scale
)
kagome_install(
secp256k1_provider
)
add_library(pbkdf2_provider
pbkdf2/impl/pbkdf2_provider_impl.cpp
)
target_link_libraries(pbkdf2_provider
PUBLIC
OpenSSL::SSL
OpenSSL::Crypto
blob
)
kagome_install(pbkdf2_provider)
add_library(elliptic_curves
elliptic_curves/elliptic_curves_impl.cpp
)
target_link_libraries(elliptic_curves
logger
arkworks::arkworks
)
kagome_install(elliptic_curves)
add_subdirectory(bip39)
add_subdirectory(blake2)
add_subdirectory(key_store)
add_subdirectory(keccak)
add_subdirectory(sha)
add_subdirectory(twox)