tests: bt: add Mbed TLS headers to the build

Include Mbed TLS headers to the build system. This is required
because these tests do not follow the "standard build pattern"
of Mbed TLS in Zephyr, otherwise include files would be already
available after the library has been linked. In these examples
some BT source files and Kconfigs are manually added to the
CmakeLists.txt file bypassing the standard library build pattern,
so Mbed TLS headers must also be added manually.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
Valerio Setti 2024-11-06 05:33:55 +01:00 committed by Anas Nashif
commit 65751c1c33
3 changed files with 6 additions and 3 deletions

View file

@ -12,7 +12,8 @@ target_sources(app
target_include_directories(app
PRIVATE
${ZEPHYR_BASE}/subsys/bluetooth/mesh)
${ZEPHYR_BASE}/subsys/bluetooth/mesh
${ZEPHYR_MBEDTLS_MODULE_DIR}/include)
target_compile_options(app
PRIVATE

View file

@ -12,7 +12,8 @@ target_sources(app
target_include_directories(app
PRIVATE
${ZEPHYR_BASE}/subsys/bluetooth/mesh)
${ZEPHYR_BASE}/subsys/bluetooth/mesh
${ZEPHYR_MBEDTLS_MODULE_DIR}/include)
target_compile_options(app
PRIVATE

View file

@ -12,7 +12,8 @@ target_sources(app
target_include_directories(app
PRIVATE
${ZEPHYR_BASE}/subsys/bluetooth/mesh)
${ZEPHYR_BASE}/subsys/bluetooth/mesh
${ZEPHYR_MBEDTLS_MODULE_DIR}/include)
target_compile_options(app
PRIVATE