| 1 |
include_directories(../../include) |
| 2 |
|
| 3 |
add_library( |
| 4 |
cipher |
| 5 |
|
| 6 |
OBJECT |
| 7 |
|
| 8 |
cipher.c |
| 9 |
derive_key.c |
| 10 |
aead.c |
| 11 |
|
| 12 |
e_null.c |
| 13 |
e_rc2.c |
| 14 |
e_rc4.c |
| 15 |
e_des.c |
| 16 |
e_aes.c |
| 17 |
e_chacha20poly1305.c |
| 18 |
|
| 19 |
tls_cbc.c |
| 20 |
e_tls.c |
| 21 |
e_ssl3.c |
| 22 |
) |
| 23 |
|
| 24 |
if(ENABLE_TESTS) |
| 25 |
add_executable( |
| 26 |
cipher_test |
| 27 |
|
| 28 |
cipher_test.cc |
| 29 |
$<TARGET_OBJECTS:test_support> |
| 30 |
) |
| 31 |
|
| 32 |
add_executable( |
| 33 |
aead_test |
| 34 |
|
| 35 |
aead_test.cc |
| 36 |
$<TARGET_OBJECTS:test_support> |
| 37 |
) |
| 38 |
|
| 39 |
target_link_libraries(cipher_test crypto) |
| 40 |
target_link_libraries(aead_test crypto) |
| 41 |
add_dependencies(all_tests cipher_test aead_test) |
| 42 |
endif() |