Manuel Pégourié-Gonnard | 6fdc9e8 | 2022-01-31 13:27:39 +0100 | [diff] [blame] | 1 | set(executables |
Manuel Pégourié-Gonnard | 29088a4 | 2022-02-01 09:38:26 +0100 | [diff] [blame] | 2 | cipher_aead_demo |
Manuel Pégourié-Gonnard | 6fdc9e8 | 2022-01-31 13:27:39 +0100 | [diff] [blame] | 3 | ) |
Gilles Peskine | bb47c73 | 2024-09-14 12:13:16 +0200 | [diff] [blame^] | 4 | add_dependencies(${programs_target} ${executables}) |
Manuel Pégourié-Gonnard | 6fdc9e8 | 2022-01-31 13:27:39 +0100 | [diff] [blame] | 5 | |
| 6 | foreach(exe IN LISTS executables) |
| 7 | add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>) |
Paul Elliott | 4068c7e | 2023-12-15 17:14:34 +0000 | [diff] [blame] | 8 | target_link_libraries(${exe} ${mbedcrypto_target} ${CMAKE_THREAD_LIBS_INIT}) |
Manuel Pégourié-Gonnard | 6fdc9e8 | 2022-01-31 13:27:39 +0100 | [diff] [blame] | 9 | target_include_directories(${exe} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include) |
| 10 | endforeach() |
| 11 | |
| 12 | install(TARGETS ${executables} |
| 13 | DESTINATION "bin" |
| 14 | PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) |