Home | History | Annotate | Download | only in curve25519
      1 include_directories(../../include)
      2 
      3 if (${ARCH} STREQUAL "arm")
      4   set(
      5     CURVE25519_ARCH_SOURCES
      6 
      7     asm/x25519-asm-arm.S
      8   )
      9 endif()
     10 
     11 if (${ARCH} STREQUAL "x86_64")
     12   set(
     13     CURVE25519_ARCH_SOURCES
     14 
     15     asm/x25519-asm-x86_64.S
     16   )
     17 endif()
     18 
     19 add_library(
     20   curve25519
     21 
     22   OBJECT
     23 
     24   curve25519.c
     25   spake25519.c
     26   x25519-x86_64.c
     27 
     28   ${CURVE25519_ARCH_SOURCES}
     29 )
     30