mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-09 03:04:24 +02:00
programs: Link to tests common code
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
@@ -4,7 +4,7 @@ set(executables_mbedtls
|
||||
)
|
||||
|
||||
foreach(exe IN LISTS executables_mbedtls)
|
||||
add_executable(${exe} ${exe}.c)
|
||||
add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>)
|
||||
target_link_libraries(${exe} mbedtls)
|
||||
endforeach()
|
||||
|
||||
@@ -30,7 +30,7 @@ set(executables_mbedcrypto
|
||||
)
|
||||
|
||||
foreach(exe IN LISTS executables_mbedcrypto)
|
||||
add_executable(${exe} ${exe}.c)
|
||||
add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>)
|
||||
target_link_libraries(${exe} mbedcrypto)
|
||||
endforeach()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user