94b2861243
Former-commit-id: 5f9c6ae75f295e057a7d2971f3a6df4656fa8850
43 lines
537 B
CMake
43 lines
537 B
CMake
include_directories(../../include)
|
|
|
|
add_library(
|
|
cipher
|
|
|
|
OBJECT
|
|
|
|
cipher.c
|
|
derive_key.c
|
|
aead.c
|
|
|
|
e_null.c
|
|
e_rc2.c
|
|
e_rc4.c
|
|
e_des.c
|
|
e_aes.c
|
|
e_chacha20poly1305.c
|
|
|
|
tls_cbc.c
|
|
e_tls.c
|
|
e_ssl3.c
|
|
)
|
|
|
|
if(ENABLE_TESTS)
|
|
add_executable(
|
|
cipher_test
|
|
|
|
cipher_test.cc
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
add_executable(
|
|
aead_test
|
|
|
|
aead_test.cc
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
target_link_libraries(cipher_test crypto)
|
|
target_link_libraries(aead_test crypto)
|
|
add_dependencies(all_tests cipher_test aead_test)
|
|
endif()
|