external/boringssl/crypto/pkcs8/CMakeLists.txt
raw| 1 | include_directories(../../include) |
| 2 | |
| 3 | add_library( |
| 4 | pkcs8_lib |
| 5 | |
| 6 | OBJECT |
| 7 | |
| 8 | pkcs8.c |
| 9 | p8_pkey.c |
| 10 | p5_pbe.c |
| 11 | p5_pbev2.c |
| 12 | ) |
| 13 | |
| 14 | if(ENABLE_TESTS) |
| 15 | add_executable( |
| 16 | pkcs12_test |
| 17 | |
| 18 | pkcs12_test.cc |
| 19 | |
| 20 | $<TARGET_OBJECTS:test_support> |
| 21 | ) |
| 22 | |
| 23 | add_executable( |
| 24 | pkcs8_test |
| 25 | |
| 26 | pkcs8_test.cc |
| 27 | ) |
| 28 | |
| 29 | target_link_libraries(pkcs8_test crypto) |
| 30 | target_link_libraries(pkcs12_test crypto) |
| 31 | add_dependencies(all_tests pkcs8_test pkcs12_test) |
| 32 | endif() |