dmazzella / ucrypto

Micropython package for doing fast rsa and elliptic curve cryptography, specifically digital signatures
31 stars 11 forks source link

No micropython.cmake file #3

Closed MATTYGILO closed 2 years ago

MATTYGILO commented 2 years ago

This repo has no micropython.cmake file, so how can we compile?

MATTYGILO commented 2 years ago

Will this micropython.cmake file work?

add_library(usermod_ufastecdsa INTERFACE)

target_sources(usermod_ufastecdsa INTERFACE
    ${CMAKE_CURRENT_LIST_DIR}/moducrypto.c
)

target_include_directories(usermod_ufastecdsa INTERFACE
    ${CMAKE_CURRENT_LIST_DIR}
)

target_link_libraries(usermod INTERFACE usermod_ufastecdsa)
dmazzella commented 2 years ago

Try with last push

dmazzella commented 2 years ago

duplicate of #2