Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt « ec « crypto - github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0d429e0befa2f0c635b59593df822419a8ae09cc (plain)
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
include_directories(../../include)

if (${ARCH} STREQUAL "x86_64")
  set(
    EC_ARCH_SOURCES

    p256-x86_64-asm.${ASM_EXT}
  )
endif()

add_library(
  ec

  OBJECT

  ec.c
  ec_asn1.c
  ec_key.c
  ec_montgomery.c
  oct.c
  p224-64.c
  p256-64.c
  p256-x86_64.c
  simple.c
  util-64.c
  wnaf.c

  ${EC_ARCH_SOURCES}
)

perlasm(p256-x86_64-asm.${ASM_EXT} asm/p256-x86_64-asm.pl)

if(ENABLE_TESTS)
add_executable(
  example_mul

  example_mul.c

  $<TARGET_OBJECTS:test_support>
)

add_executable(
  ec_test

  ec_test.cc

  $<TARGET_OBJECTS:test_support>
)

target_link_libraries(example_mul crypto)
target_link_libraries(ec_test crypto)
add_dependencies(all_tests example_mul ec_test)
endif()