2018-07-10 09:10:21 +02:00
|
|
|
add_executable(crypto_examples crypto_examples.c)
|
2020-02-26 19:05:31 +01:00
|
|
|
target_link_libraries(crypto_examples mbedtls)
|
2018-07-10 09:10:21 +02:00
|
|
|
|
2019-01-02 17:28:46 +01:00
|
|
|
add_executable(key_ladder_demo key_ladder_demo.c)
|
2020-02-26 19:05:31 +01:00
|
|
|
target_link_libraries(key_ladder_demo mbedtls)
|
2019-01-02 17:28:46 +01:00
|
|
|
|
2019-01-02 17:29:04 +01:00
|
|
|
add_executable(psa_constant_names psa_constant_names.c)
|
2020-05-28 09:42:01 +02:00
|
|
|
target_include_directories(psa_constant_names PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
2020-02-26 19:05:31 +01:00
|
|
|
target_link_libraries(psa_constant_names mbedtls)
|
2019-01-02 17:29:04 +01:00
|
|
|
|
2019-02-07 11:50:49 +01:00
|
|
|
add_custom_target(
|
|
|
|
psa_constant_names_generated
|
2020-03-25 12:55:32 +01:00
|
|
|
COMMAND ${MBEDTLS_PYTHON_EXECUTABLE} scripts/generate_psa_constants.py ${CMAKE_CURRENT_BINARY_DIR}
|
2019-02-07 11:50:49 +01:00
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../
|
|
|
|
)
|
|
|
|
add_dependencies(psa_constant_names psa_constant_names_generated)
|
|
|
|
|
2019-01-02 17:28:46 +01:00
|
|
|
install(TARGETS
|
|
|
|
crypto_examples
|
|
|
|
key_ladder_demo
|
2019-01-02 17:29:04 +01:00
|
|
|
psa_constant_names
|
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")
|