2020-06-05 09:15:31 +00:00
|
|
|
set(executables
|
|
|
|
crypto_examples
|
|
|
|
key_ladder_demo
|
|
|
|
psa_constant_names
|
|
|
|
)
|
2018-07-10 07:10:21 +00:00
|
|
|
|
2020-06-05 09:15:31 +00:00
|
|
|
foreach(exe IN LISTS executables)
|
|
|
|
add_executable(${exe} ${exe}.c)
|
|
|
|
target_link_libraries(${exe} mbedtls)
|
|
|
|
endforeach()
|
2019-01-02 16:28:46 +00:00
|
|
|
|
2020-05-28 07:42:01 +00:00
|
|
|
target_include_directories(psa_constant_names PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
2019-01-02 16:29:04 +00:00
|
|
|
|
2019-02-07 10:50:49 +00:00
|
|
|
add_custom_target(
|
|
|
|
psa_constant_names_generated
|
2020-03-25 11:55:32 +00:00
|
|
|
COMMAND ${MBEDTLS_PYTHON_EXECUTABLE} scripts/generate_psa_constants.py ${CMAKE_CURRENT_BINARY_DIR}
|
2019-02-07 10:50:49 +00:00
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../
|
|
|
|
)
|
|
|
|
add_dependencies(psa_constant_names psa_constant_names_generated)
|
|
|
|
|
2020-06-05 09:15:31 +00:00
|
|
|
install(TARGETS ${executables}
|
2018-07-10 07:10:21 +00:00
|
|
|
DESTINATION "bin"
|
|
|
|
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
|
|
|
|
2019-01-02 16:28:46 +00:00
|
|
|
install(PROGRAMS
|
|
|
|
key_ladder_demo.sh
|
|
|
|
DESTINATION "bin")
|