| Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 1 | set(executables_mbedtls | 
|  | 2 | dh_client | 
|  | 3 | dh_server | 
|  | 4 | ) | 
| Paul Bakker | 367dae4 | 2009-06-28 21:50:27 +0000 | [diff] [blame] | 5 |  | 
| Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 6 | foreach(exe IN LISTS executables_mbedtls) | 
| Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 7 | add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>) | 
| Raef Coles | 995c66f | 2020-10-13 16:30:41 +0100 | [diff] [blame] | 8 | target_link_libraries(${exe} ${mbedtls_target}) | 
| Manuel Pégourié-Gonnard | 36a8963 | 2021-06-15 11:43:33 +0200 | [diff] [blame] | 9 | target_include_directories(${exe} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include) | 
| Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 10 | endforeach() | 
| Paul Bakker | 367dae4 | 2009-06-28 21:50:27 +0000 | [diff] [blame] | 11 |  | 
| Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 12 | set(executables_mbedcrypto | 
|  | 13 | dh_genprime | 
|  | 14 | ecdh_curve25519 | 
|  | 15 | ecdsa | 
|  | 16 | gen_key | 
|  | 17 | key_app | 
|  | 18 | key_app_writer | 
|  | 19 | mpi_demo | 
|  | 20 | pk_encrypt | 
|  | 21 | pk_decrypt | 
|  | 22 | pk_sign | 
|  | 23 | pk_verify | 
|  | 24 | rsa_decrypt | 
|  | 25 | rsa_encrypt | 
|  | 26 | rsa_genkey | 
|  | 27 | rsa_sign | 
|  | 28 | rsa_sign_pss | 
|  | 29 | rsa_verify | 
|  | 30 | rsa_verify_pss | 
|  | 31 | ) | 
| Paul Bakker | 367dae4 | 2009-06-28 21:50:27 +0000 | [diff] [blame] | 32 |  | 
| Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 33 | foreach(exe IN LISTS executables_mbedcrypto) | 
| Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 34 | add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>) | 
| Raef Coles | 995c66f | 2020-10-13 16:30:41 +0100 | [diff] [blame] | 35 | target_link_libraries(${exe} ${mbedcrypto_target}) | 
| Manuel Pégourié-Gonnard | 36a8963 | 2021-06-15 11:43:33 +0200 | [diff] [blame] | 36 | target_include_directories(${exe} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include) | 
| Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 37 | endforeach() | 
| Manuel Pégourié-Gonnard | 3eb8c34 | 2015-10-09 12:11:14 +0100 | [diff] [blame] | 38 |  | 
| Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 39 | install(TARGETS ${executables_mbedtls} ${executables_mbedcrypto} | 
| Paul Bakker | 547f73d | 2011-01-05 15:07:54 +0000 | [diff] [blame] | 40 | DESTINATION "bin" | 
|  | 41 | PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) |