| 1 |
include_directories(../../include) |
| 2 |
|
| 3 |
add_library( |
| 4 |
evp |
| 5 |
|
| 6 |
OBJECT |
| 7 |
|
| 8 |
digestsign.c |
| 9 |
evp.c |
| 10 |
evp_asn1.c |
| 11 |
evp_ctx.c |
| 12 |
p_dsa_asn1.c |
| 13 |
p_ec.c |
| 14 |
p_ec_asn1.c |
| 15 |
p_rsa.c |
| 16 |
p_rsa_asn1.c |
| 17 |
pbkdf.c |
| 18 |
print.c |
| 19 |
sign.c |
| 20 |
) |
| 21 |
|
| 22 |
|
| 23 |
if(ENABLE_TESTS) |
| 24 |
add_executable( |
| 25 |
evp_extra_test |
| 26 |
|
| 27 |
evp_extra_test.cc |
| 28 |
|
| 29 |
$<TARGET_OBJECTS:test_support> |
| 30 |
) |
| 31 |
|
| 32 |
add_executable( |
| 33 |
evp_test |
| 34 |
|
| 35 |
evp_test.cc |
| 36 |
|
| 37 |
$<TARGET_OBJECTS:test_support> |
| 38 |
) |
| 39 |
|
| 40 |
add_executable( |
| 41 |
pbkdf_test |
| 42 |
|
| 43 |
pbkdf_test.cc |
| 44 |
|
| 45 |
$<TARGET_OBJECTS:test_support> |
| 46 |
) |
| 47 |
|
| 48 |
target_link_libraries(evp_extra_test crypto) |
| 49 |
target_link_libraries(evp_test crypto) |
| 50 |
target_link_libraries(pbkdf_test crypto) |
| 51 |
add_dependencies(all_tests evp_extra_test evp_test pbkdf_test) |
| 52 |
endif() |