boringssl/crypto/poly1305/CMakeLists.txt

32 lines
421 B
CMake
Raw Normal View History

include_directories(../../include)
2014-06-20 20:00:00 +01:00
if (${ARCH} STREQUAL "arm")
set(
POLY1305_ARCH_SOURCES
2014-06-20 20:00:00 +01:00
poly1305_arm_asm.S
)
2014-06-20 20:00:00 +01:00
endif()
add_library(
poly1305
2014-06-20 20:00:00 +01:00
OBJECT
2014-06-20 20:00:00 +01:00
poly1305.c
poly1305_arm.c
poly1305_vec.c
2014-06-20 20:00:00 +01:00
${POLY1305_ARCH_SOURCES}
2014-06-20 20:00:00 +01:00
)
add_executable(
poly1305_test
poly1305_test.cc
$<TARGET_OBJECTS:test_support>
)
target_link_libraries(poly1305_test crypto)
add_dependencies(all_tests poly1305_test)