IVGCVSW-5625 Add support for Float16 to Delegate

 * Float16 unit tests for Reshape
 * Remove unsupported data type from Pad

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Ib1804bb6e708a0552fb40d05fe8a6511936f9793
diff --git a/delegate/CMakeLists.txt b/delegate/CMakeLists.txt
index c052be2..9f64353 100644
--- a/delegate/CMakeLists.txt
+++ b/delegate/CMakeLists.txt
@@ -93,6 +93,15 @@
 
 target_link_libraries(armnnDelegate PUBLIC flatbuffer_headers)
 
+# Add libraries from armnn third-party libraries
+# Third-party header files are not warning clean
+# We can't change compilation flags on header files directly, so we need to add them to an interface library first
+add_library(thirdparty_headers INTERFACE)
+target_include_directories(thirdparty_headers INTERFACE $<BUILD_INTERFACE:${ARMNN_SOURCE_DIR}/third-party>
+                                                        $<INSTALL_INTERFACE:include/thirdparty_headers>)
+
+target_compile_options(thirdparty_headers INTERFACE -Wno-old-style-cast)
+
 option(BUILD_UNIT_TESTS "Build unit tests" ON)
 if(BUILD_UNIT_TESTS)
     set(armnnDelegate_unittest_sources)
@@ -140,7 +149,7 @@
     target_include_directories(DelegateUnitTests PRIVATE third-party)
 
     # Add half library from armnn third-party libraries
-    target_include_directories(DelegateUnitTests PRIVATE ${ARMNN_SOURCE_DIR}/third-party)
+    target_link_libraries(DelegateUnitTests PRIVATE thirdparty_headers)
 
     target_link_libraries(DelegateUnitTests PRIVATE armnnDelegate)
     target_link_libraries(DelegateUnitTests PRIVATE Armnn::armnnUtils)