Run generate_psa_constants.py in cmake builds

This commit is contained in:
Darryl Green 2019-02-06 13:41:54 +00:00
parent b8fe06820b
commit d519583ae3

View File

@ -4,6 +4,8 @@ target_link_libraries(crypto_examples mbedtls)
add_executable(key_ladder_demo key_ladder_demo.c) add_executable(key_ladder_demo key_ladder_demo.c)
target_link_libraries(key_ladder_demo mbedtls) target_link_libraries(key_ladder_demo mbedtls)
execute_process(COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/../../scripts/generate_psa_constants.py)
add_executable(psa_constant_names psa_constant_names.c) add_executable(psa_constant_names psa_constant_names.c)
target_link_libraries(psa_constant_names mbedtls) target_link_libraries(psa_constant_names mbedtls)