1# SPDX-License-Identifier: Apache-2.0 2 3cmake_minimum_required(VERSION 3.20.0) 4find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 5project(mbedtls) 6 7set(output_file ${PROJECT_BINARY_DIR}/mbedtls-check.timestamp) 8 9add_custom_command( 10 COMMENT "Check Mbed TLS auto-generated files" 11 COMMAND 12 ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/modules/mbedtls/create_psa_files.py --check 13 OUTPUT 14 ${output_file} 15) 16 17add_custom_target(check_mbedtls_auto_generated_files ALL DEPENDS ${output_file}) 18 19FILE(GLOB app_sources src/*.c) 20target_sources(app PRIVATE ${app_sources}) 21