Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 1 | set(executables |
| 2 | crypto_examples |
| 3 | key_ladder_demo |
| 4 | psa_constant_names |
| 5 | ) |
itayzafrir | a3ff8a6 | 2018-07-10 10:10:21 +0300 | [diff] [blame] | 6 | |
Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 7 | foreach(exe IN LISTS executables) |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 8 | add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>) |
Raef Coles | 995c66f | 2020-10-13 16:30:41 +0100 | [diff] [blame] | 9 | target_link_libraries(${exe} ${mbedcrypto_target}) |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 10 | target_include_directories(${exe} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include) |
Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 11 | endforeach() |
Gilles Peskine | f31dbb7 | 2019-01-02 17:28:46 +0100 | [diff] [blame] | 12 | |
Hugues de Valon | 235c72d | 2020-05-28 08:42:01 +0100 | [diff] [blame] | 13 | target_include_directories(psa_constant_names PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) |
Gilles Peskine | 6a78573 | 2019-01-02 17:29:04 +0100 | [diff] [blame] | 14 | |
Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 15 | install(TARGETS ${executables} |
itayzafrir | a3ff8a6 | 2018-07-10 10:10:21 +0300 | [diff] [blame] | 16 | DESTINATION "bin" |
| 17 | PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) |
| 18 | |
Gilles Peskine | f31dbb7 | 2019-01-02 17:28:46 +0100 | [diff] [blame] | 19 | install(PROGRAMS |
| 20 | key_ladder_demo.sh |
| 21 | DESTINATION "bin") |