From 3c24f43ff9afb50898d6a73ccddbc0936f72fdad Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Mon, 19 Oct 2020 17:35:30 +0100 Subject: IVGCVSW-5365 'Create the TfLite Delegate subdirectory in ArmNN' * Created delegate sub-directory under armnn * Created Delegate, ArmnnSubgraph and DelegateOptions classes * Created cmake files. * Integrated doctest (under MIT license) as testing framework Signed-off-by: Sadik Armagan Change-Id: If725ebd62c40a97c783cdad22bca48709d44338c --- delegate/cmake/Modules/FindFlatbuffers.cmake | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 delegate/cmake/Modules/FindFlatbuffers.cmake (limited to 'delegate/cmake/Modules/FindFlatbuffers.cmake') diff --git a/delegate/cmake/Modules/FindFlatbuffers.cmake b/delegate/cmake/Modules/FindFlatbuffers.cmake new file mode 100644 index 0000000000..13d6f917b3 --- /dev/null +++ b/delegate/cmake/Modules/FindFlatbuffers.cmake @@ -0,0 +1,32 @@ +# +# Copyright © 2020 Arm Ltd and Contributors. All rights reserved. +# SPDX-License-Identifier: MIT +# + +include(FindPackageHandleStandardArgs) +unset(FLATBUFFERS_FOUND) + +find_path(Flatbuffers_INCLUDE_DIR + flatbuffers/flatbuffers.h + HINTS + ${FLATBUFFERS_ROOT}/include + /usr/local/include + /usr/include) + +find_library(Flatbuffers_LIB + NAMES + libflatbuffers.a + flatbuffers + HINTS + ${FLATBUFFERS_ROOT}/lib + /usr/local/lib + /usr/lib) + +## Set FLATBUFFERS_FOUND +find_package_handle_standard_args(Flatbuffers DEFAULT_MSG Flatbuffers_INCLUDE_DIR Flatbuffers_LIB) + +## Set external variables for usage in CMakeLists.txt +if(FLATBUFFERS_FOUND) + set(Flatbuffers_LIB ${Flatbuffers_LIB}) + set(Flatbuffers_INCLUDE_DIR ${Flatbuffers_INCLUDE_DIR}) +endif() \ No newline at end of file -- cgit v1.2.1