IVGCVSW-7031 Generate static execute network

 * Build ExecNet lib dependencies as object libs except libarmnn
 * Disable PIPE when building static ExecNet
 * Remove multiple definition from AsyncExecutionCallback
 * Disable DynamicBackend for ExecNet Static build
 * Disable inference  tests for TfLiteParser and ONNX during static ExecNet
 * Remove Tensorflow Parser if condition
 * Add Disable thread macro to InferenceModel
 * Don't compile dynamic backend symbols in Runtime.cpp for Baremetal and
   Exenet Static

Signed-off-by: Ryan OShea <ryan.oshea3@arm.com>
Change-Id: If41c063eab5f05b3df0a6e064924a36a177f116a
diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt
index 31ff508..e5ee711 100644
--- a/samples/CMakeLists.txt
+++ b/samples/CMakeLists.txt
@@ -1,8 +1,8 @@
 #
-# Copyright © 2018-2022 Arm Ltd and Contributors. All rights reserved.
+# Copyright © 2018-2023 Arm Ltd and Contributors. All rights reserved.
 # SPDX-License-Identifier: MIT
 #
-if (NOT BUILD_BARE_METAL)
+if (NOT BUILD_BARE_METAL AND NOT EXECUTE_NETWORK_STATIC)
    if(BUILD_SAMPLE_APP AND ARMNNREF)
         add_executable(SimpleSample SimpleSample.cpp)
         target_link_libraries(SimpleSample armnn ${CMAKE_THREAD_LIBS_INIT})