Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / mbedtls / repo / programs / test / cmake_subproject / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 # We use the parent Mbed TLS directory as the MBEDTLS_DIR for this test. Other
4 # projects that use Mbed TLS as a subproject are likely to add by their own
5 # relative paths.
6 set(MBEDTLS_DIR ../../../)
7
8 # Add Mbed TLS as a subdirectory.
9 add_subdirectory(${MBEDTLS_DIR} build)
10
11 # Link against all the Mbed TLS libraries.
12 set(libs
13     mbedtls
14     mbedcrypto
15     mbedx509
16 )
17
18 add_executable(cmake_subproject cmake_subproject.c)
19 target_link_libraries(cmake_subproject ${libs})