Paul Bakker | 4811b56 | 2012-09-25 11:45:38 +0000 | [diff] [blame] | 1 | set(libs |
Raef Coles | 995c66f | 2020-10-13 16:30:41 +0100 | [diff] [blame] | 2 | ${mbedcrypto_target} |
Harry Ramsey | 3901af5 | 2024-10-15 12:03:11 +0100 | [diff] [blame] | 3 | ${mbedx509_target} |
Paul Bakker | 4811b56 | 2012-09-25 11:45:38 +0000 | [diff] [blame] | 4 | ) |
| 5 | |
Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 6 | set(executables |
| 7 | pem2der |
| 8 | strerror |
| 9 | ) |
Gilles Peskine | 5dab92e | 2024-09-14 12:13:16 +0200 | [diff] [blame] | 10 | add_dependencies(${programs_target} ${executables}) |
Paul Bakker | 4811b56 | 2012-09-25 11:45:38 +0000 | [diff] [blame] | 11 | |
Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 12 | foreach(exe IN LISTS executables) |
Ronald Cron | 8dc0af2 | 2020-06-05 16:00:22 +0200 | [diff] [blame] | 13 | add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>) |
Ronald Cron | b247898 | 2024-10-07 16:17:07 +0200 | [diff] [blame^] | 14 | set_base_compile_options(${exe}) |
Paul Elliott | 4068c7e | 2023-12-15 17:14:34 +0000 | [diff] [blame] | 15 | target_link_libraries(${exe} ${libs} ${CMAKE_THREAD_LIBS_INIT}) |
Manuel Pégourié-Gonnard | 36a8963 | 2021-06-15 11:43:33 +0200 | [diff] [blame] | 16 | target_include_directories(${exe} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include) |
Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 17 | endforeach() |
Paul Bakker | 8adf13b | 2013-08-25 14:50:09 +0200 | [diff] [blame] | 18 | |
Ronald Cron | bfd45f1 | 2020-06-05 11:15:31 +0200 | [diff] [blame] | 19 | install(TARGETS ${executables} |
Paul Bakker | 4811b56 | 2012-09-25 11:45:38 +0000 | [diff] [blame] | 20 | DESTINATION "bin" |
| 21 | PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) |