mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-29 13:20:21 +00:00
We cannot add the equivalent of cmake_package_install yet as the build in tf-psa-crypto still references some headers in ./include/mbedtls like mbedtls_config.h. We cannot add the equivalent of cmake_subproject yet as currently only the case of the Mbed TLS parent project is supported. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
20 lines
469 B
C
20 lines
469 B
C
/*
|
|
* Simple program to test that TF-PSA-Crypto builds correctly as a CMake
|
|
* package.
|
|
*
|
|
* Copyright The Mbed TLS Contributors
|
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
*/
|
|
|
|
#include <psa/crypto.h>
|
|
|
|
/* The main reason to build this is for testing the CMake build, so the program
|
|
* doesn't need to do very much. It calls a PSA cryptography API to ensure
|
|
* linkage works, but that is all. */
|
|
int main()
|
|
{
|
|
psa_crypto_init();
|
|
|
|
return 0;
|
|
}
|