94b2861243
Former-commit-id: 5f9c6ae75f295e057a7d2971f3a6df4656fa8850
34 lines
446 B
CMake
34 lines
446 B
CMake
include_directories(../../include)
|
|
|
|
if (${ARCH} STREQUAL "arm")
|
|
set(
|
|
POLY1305_ARCH_SOURCES
|
|
|
|
poly1305_arm_asm.S
|
|
)
|
|
endif()
|
|
|
|
add_library(
|
|
poly1305
|
|
|
|
OBJECT
|
|
|
|
poly1305.c
|
|
poly1305_arm.c
|
|
poly1305_vec.c
|
|
|
|
${POLY1305_ARCH_SOURCES}
|
|
)
|
|
|
|
if(ENABLE_TESTS)
|
|
add_executable(
|
|
poly1305_test
|
|
|
|
poly1305_test.cc
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
target_link_libraries(poly1305_test crypto)
|
|
add_dependencies(all_tests poly1305_test)
|
|
endif()
|