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

CMakeLists.txt « newhope « crypto - github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0f080f8c5b42c7abd00485370ec5f256c1747743 (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
add_library(
  newhope

  OBJECT

  error_correction.c
  newhope.c
  ntt.c
  poly.c
  precomp.c
  reduce.c
)

if(ENABLE_TESTS)
add_executable(
  newhope_test

  newhope_test.cc
  $<TARGET_OBJECTS:test_support>
)

add_executable(
  newhope_statistical_test

  newhope_statistical_test.cc
  $<TARGET_OBJECTS:test_support>
)

add_executable(
  newhope_vectors_test

  newhope_vectors_test.cc
  $<TARGET_OBJECTS:test_support>
)

target_link_libraries(newhope_test crypto)
target_link_libraries(newhope_statistical_test crypto)
target_link_libraries(newhope_vectors_test crypto)
add_dependencies(all_tests newhope_test)
add_dependencies(all_tests newhope_statistical_test)
add_dependencies(all_tests newhope_vectors_test)
endif()