mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-11 07:50:57 +00:00
CMakeLists: Copy SOURCES from Makefile
This commit is contained in:
parent
3983f330cf
commit
cc3ab71197
@ -1,10 +1,25 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
set(SOURCES address.c aes/aescrypt.c aes/aeskey.c aes/aes_modes.c aes/aestab.c base32.c base58.c bignum.c bip32.c bip39.c ecdsa.c hmac.c nist256p1.c pbkdf2.c rand.c ripemd160.c secp256k1.c sha2.c sha3.c ed25519-donna/ed25519.c ed25519-donna/ed25519-donna-basepoint-table.c ed25519-donna/ed25519-sha3.c ed25519-donna/ed25519-keccak.c)
|
||||
set(SOURCES
|
||||
bignum.c ecdsa.c curves.c secp256k1.c nist256p1.c rand.c hmac.c bip32.c bip39.c pbkdf2.c base58.c base32.c
|
||||
address.c
|
||||
script.c
|
||||
ripemd160.c
|
||||
sha2.c
|
||||
sha3.c
|
||||
aes/aescrypt.c aes/aeskey.c aes/aestab.c aes/aes_modes.c
|
||||
ed25519-donna/curve25519-donna-32bit.c ed25519-donna/curve25519-donna-helpers.c ed25519-donna/modm-donna-32bit.c
|
||||
ed25519-donna/ed25519-donna-basepoint-table.c ed25519-donna/ed25519-donna-32bit-tables.c ed25519-donna/ed25519-donna-impl-base.c
|
||||
ed25519-donna/ed25519.c ed25519-donna/curve25519-donna-scalarmult-base.c ed25519-donna/ed25519-sha3.c ed25519-donna/ed25519-keccak.c
|
||||
blake2b.c blake2s.c
|
||||
chacha20poly1305/chacha20poly1305.c chacha20poly1305/chacha_merged.c chacha20poly1305/poly1305-donna.c chacha20poly1305/rfc7539.c
|
||||
)
|
||||
|
||||
add_library(TrezorCrypto STATIC ${SOURCES})
|
||||
|
||||
target_include_directories(TrezorCrypto PUBLIC .)
|
||||
target_include_directories(TrezorCrypto PUBLIC aes)
|
||||
target_include_directories(TrezorCrypto PUBLIC chacha20poly1305)
|
||||
target_include_directories(TrezorCrypto PUBLIC ed25519-donna)
|
||||
|
||||
target_compile_options(TrezorCrypto PRIVATE "-std=c99")
|
||||
|
Loading…
Reference in New Issue
Block a user