2020-06-05 11:15:31 +02:00
|
|
|
set(executables
|
|
|
|
crypto_examples
|
|
|
|
key_ladder_demo
|
|
|
|
psa_constant_names
|
|
|
|
)
|
2018-07-10 09:10:21 +02:00
|
|
|
|
2020-06-05 11:15:31 +02:00
|
|
|
foreach(exe IN LISTS executables)
|
2020-06-05 16:00:22 +02:00
|
|
|
add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>)
|
2020-10-13 17:30:41 +02:00
|
|
|
target_link_libraries(${exe} ${mbedcrypto_target})
|
2020-06-05 16:00:22 +02:00
|
|
|
target_include_directories(${exe} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/include)
|
2020-06-05 11:15:31 +02:00
|
|
|
endforeach()
|
2019-01-02 17:28:46 +01:00
|
|
|
|
2020-05-28 09:42:01 +02:00
|
|
|
target_include_directories(psa_constant_names PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
2019-01-02 17:29:04 +01:00
|
|
|
|
2020-06-05 11:15:31 +02:00
|
|
|
install(TARGETS ${executables}
|
2018-07-10 09:10:21 +02:00
|
|
|
DESTINATION "bin"
|
|
|
|
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
|
|
|
|
2019-01-02 17:28:46 +01:00
|
|
|
install(PROGRAMS
|
|
|
|
key_ladder_demo.sh
|
|
|
|
DESTINATION "bin")
|