programs: Link to tests common code
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
diff --git a/programs/fuzz/CMakeLists.txt b/programs/fuzz/CMakeLists.txt
index 9d4043a..e2b0eac 100644
--- a/programs/fuzz/CMakeLists.txt
+++ b/programs/fuzz/CMakeLists.txt
@@ -32,7 +32,7 @@
foreach(exe IN LISTS executables_no_common_c executables_with_common_c)
- add_executable(${exe} ${exe}.c)
+ add_executable(${exe} ${exe}.c $<TARGET_OBJECTS:mbedtls_test>)
if (NOT FUZZINGENGINE_LIB)
target_link_libraries(${exe} ${libs})