2016-04-18 19:30:19 +01:00
|
|
|
add_library(
|
|
|
|
newhope
|
|
|
|
|
|
|
|
OBJECT
|
|
|
|
|
|
|
|
error_correction.c
|
|
|
|
newhope.c
|
|
|
|
ntt.c
|
|
|
|
poly.c
|
|
|
|
precomp.c
|
|
|
|
reduce.c
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(
|
|
|
|
newhope_test
|
|
|
|
|
|
|
|
newhope_test.c
|
|
|
|
$<TARGET_OBJECTS:test_support>
|
|
|
|
)
|
|
|
|
|
2016-06-03 01:23:29 +01:00
|
|
|
add_executable(
|
|
|
|
newhope_statistical_test
|
|
|
|
|
|
|
|
newhope_statistical_test.cc
|
|
|
|
$<TARGET_OBJECTS:test_support>
|
|
|
|
)
|
|
|
|
|
2016-05-28 00:49:29 +01:00
|
|
|
add_executable(
|
|
|
|
newhope_vectors_test
|
|
|
|
|
|
|
|
newhope_vectors_test.cc
|
|
|
|
$<TARGET_OBJECTS:test_support>
|
|
|
|
)
|
|
|
|
|
2016-04-18 19:30:19 +01:00
|
|
|
target_link_libraries(newhope_test crypto)
|
2016-06-03 01:23:29 +01:00
|
|
|
target_link_libraries(newhope_statistical_test crypto)
|
2016-05-28 00:49:29 +01:00
|
|
|
target_link_libraries(newhope_vectors_test crypto)
|
2016-04-18 19:30:19 +01:00
|
|
|
add_dependencies(all_tests newhope_test)
|
2016-06-03 01:23:29 +01:00
|
|
|
add_dependencies(all_tests newhope_statistical_test)
|
2016-05-28 00:49:29 +01:00
|
|
|
add_dependencies(all_tests newhope_vectors_test)
|