App: Fix TF-M Application example

Signed-off-by: Anton Komlev <anton.komlev@arm.com>
Change-Id: Ie946c15371ad4b7854595a38f19c8357f4f4ea59
diff --git a/examples/tf-m-example-ns-app/CMakeLists.txt b/examples/tf-m-example-ns-app/CMakeLists.txt
index 386ea77..1e93790 100644
--- a/examples/tf-m-example-ns-app/CMakeLists.txt
+++ b/examples/tf-m-example-ns-app/CMakeLists.txt
@@ -51,6 +51,13 @@
         tfm_api_ns
 )
 
+if (CONFIG_TFM_USE_TRUSTZONE)
+    target_link_libraries(tfm_ns
+        PRIVATE
+            tfm_api_ns_tz
+    )
+endif()
+
 set_target_properties(tfm_ns PROPERTIES
     SUFFIX ".axf"
     RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"