1 cmake_minimum_required(VERSION 2.6)
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
6 set(MBEDTLS_DIR ../../../)
8 # Add Mbed TLS as a subdirectory.
9 add_subdirectory(${MBEDTLS_DIR} build)
11 # Link against all the Mbed TLS libraries.
18 add_executable(cmake_subproject cmake_subproject.c)
19 target_link_libraries(cmake_subproject ${libs})