aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--applications/message_handler/test/CMakeLists.txt15
1 files changed, 10 insertions, 5 deletions
diff --git a/applications/message_handler/test/CMakeLists.txt b/applications/message_handler/test/CMakeLists.txt
index 85976ba..3334ff2 100644
--- a/applications/message_handler/test/CMakeLists.txt
+++ b/applications/message_handler/test/CMakeLists.txt
@@ -32,12 +32,17 @@ function(ethosu_add_message_handler_test testname)
get_filename_component(modelname ${model} NAME)
ethosu_add_executable_test(mh_${testname}_${modelname}
SOURCES
- ${testname}.cpp
- message_client.cpp
+ ${testname}.cpp
+ message_client.cpp
LIBRARIES
- message_handler_lib
- freertos_kernel
- ethosu_mhu_dummy)
+ message_handler_lib
+ freertos_kernel)
+
+ get_target_property(INTERFACE_LINK_LIBRARIES ethosu_target_startup INTERFACE_LINK_LIBRARIES)
+ if (NOT ethosu_mhu_dummy IN_LIST INTERFACE_LINK_LIBRARIES)
+ target_link_libraries(mh_${testname}_${modelname} PRIVATE ethosu_mhu_dummy)
+ endif()
+
target_include_directories(mh_${testname}_${modelname} PRIVATE
../indexed_networks