You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 regels
363 B

  1. include_directories(../../include)
  2. if (${ARCH} STREQUAL "arm")
  3. set(
  4. CURVE25519_ARCH_SOURCES
  5. asm/x25519-asm-arm.S
  6. )
  7. endif()
  8. if (${ARCH} STREQUAL "x86_64")
  9. set(
  10. CURVE25519_ARCH_SOURCES
  11. asm/x25519-asm-x86_64.S
  12. )
  13. endif()
  14. add_library(
  15. curve25519
  16. OBJECT
  17. curve25519.c
  18. spake25519.c
  19. x25519-x86_64.c
  20. ${CURVE25519_ARCH_SOURCES}
  21. )