Kenny Root | b849459 | 2015-09-25 02:29:14 +0000 | [diff] [blame] | 1 | include_directories(../../include) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 2 | |
| 3 | if (${ARCH} STREQUAL "arm") |
| 4 | set( |
| 5 | POLY1305_ARCH_SOURCES |
| 6 | |
| 7 | poly1305_arm_asm.S |
| 8 | ) |
| 9 | endif() |
| 10 | |
| 11 | add_library( |
| 12 | poly1305 |
| 13 | |
| 14 | OBJECT |
| 15 | |
| 16 | poly1305.c |
| 17 | poly1305_arm.c |
| 18 | poly1305_vec.c |
| 19 | |
| 20 | ${POLY1305_ARCH_SOURCES} |
| 21 | ) |
Kenny Root | b849459 | 2015-09-25 02:29:14 +0000 | [diff] [blame] | 22 | |
| 23 | add_executable( |
| 24 | poly1305_test |
| 25 | |
| 26 | poly1305_test.cc |
| 27 | $<TARGET_OBJECTS:test_support> |
| 28 | ) |
| 29 | |
| 30 | target_link_libraries(poly1305_test crypto) |
Kenny Root | e99801b | 2015-11-06 15:31:15 -0800 | [diff] [blame] | 31 | add_dependencies(all_tests poly1305_test) |