2024-06-17 12:25:26 +00:00
|
|
|
option(INSTALL_TF_PSA_CRYPTO_HEADERS "Install TF PSA Crypto headers." ON)
|
2024-06-10 14:05:53 +00:00
|
|
|
|
2024-06-17 12:25:26 +00:00
|
|
|
if(INSTALL_TF_PSA_CRYPTO_HEADERS)
|
2024-06-10 14:05:53 +00:00
|
|
|
file(GLOB psa_headers "psa/*.h")
|
2024-06-17 12:25:26 +00:00
|
|
|
file(GLOB mbedtls_crypto_headers "../drivers/builtin/include/mbedtls/*.h")
|
2024-06-10 14:05:53 +00:00
|
|
|
|
|
|
|
install(FILES ${psa_headers}
|
|
|
|
DESTINATION include/psa
|
|
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
|
|
|
|
|
2024-06-17 12:25:26 +00:00
|
|
|
install(FILES ${mbedtls_crypto_headers}
|
|
|
|
DESTINATION include/mbedtls
|
|
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
|
|
|
|
endif(INSTALL_TF_PSA_CRYPTO_HEADERS)
|
2024-06-10 14:05:53 +00:00
|
|
|
|
|
|
|
# Make includes available in an out-of-source build. ssl-opt.sh requires it.
|
|
|
|
if (ENABLE_TESTING AND NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
link_to_source(psa)
|
|
|
|
endif()
|