mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 12:45:37 +01:00
e8451f2274
If we have a regression with the "build Mbed Crypto as a subdirectory with CMake" feature and fail to build, fail the test.
18 lines
479 B
CMake
18 lines
479 B
CMake
cmake_minimum_required(VERSION 2.6)
|
|
|
|
# We use the parent Mbed TLS directory as the MBEDTLS_DIR for this test. Other
|
|
# projects that use Mbed TLS as a subproject are likely to add by their own
|
|
# relative paths.
|
|
set(MBEDTLS_DIR ../../../)
|
|
|
|
# Add Mbed TLS as a subdirectory.
|
|
add_subdirectory(${MBEDTLS_DIR} build)
|
|
|
|
# Link against the Mbed Crypto library.
|
|
set(libs
|
|
mbedcrypto
|
|
)
|
|
|
|
add_executable(cmake_subproject cmake_subproject.c)
|
|
target_link_libraries(cmake_subproject ${libs})
|