Skip to content

Commit

Permalink
tests: CMake update for the mbedtls and jwt test
Browse files Browse the repository at this point in the history
To include mbedTLS headers in the test source build, update CMake to
link with the mbedTLS headers interface library.

Signed-off-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@linaro.org>
  • Loading branch information
Rajkumar Kanagaraj committed May 18, 2023
1 parent 68f7492 commit 1c1dd38
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/benchmarks/mbedtls/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ project(mbedtls_benchmark)

FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})

# Link to mbed TLS headers library
zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)
3 changes: 3 additions & 0 deletions tests/crypto/mbedtls/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ project(mbedtls)

FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})

# Link to mbed TLS headers library
zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)
3 changes: 3 additions & 0 deletions tests/subsys/jwt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ project(jwt)
FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})
zephyr_include_directories(${APPLICATION_SOURCE_DIR}/src/tls_config)

# Link to mbed TLS headers library
zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)

0 comments on commit 1c1dd38

Please sign in to comment.