boringssl/crypto/newhope/CMakeLists.txt
Matt Braithwaite 3675dddab9 newhope_test: corrupt things harder.
This ensures that the test is not flaky after lots of iterations.

Along the way, change newhope_test.cc to C++.

Change-Id: I4ef139444b8c8a98db53d075105eb6806f6c5fc7
Reviewed-on: https://boringssl-review.googlesource.com/8110
Reviewed-by: Adam Langley <agl@google.com>
2016-06-16 16:41:19 +00:00

41 lines
700 B
CMake

add_library(
newhope
OBJECT
error_correction.c
newhope.c
ntt.c
poly.c
precomp.c
reduce.c
)
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)