1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2024-12-25 16:22:58 +01:00
OpenVoiceOS/buildroot-external/package/whisper-tflite/0001-Add-CMakeLists.txt.patch
2022-12-09 17:21:58 +01:00

48 lines
1.5 KiB
Diff

From 92360d24a61fe9863f74d5906e0272d152611aba Mon Sep 17 00:00:00 2001
From: j1nx <p.steenbergen@j1nx.nl>
Date: Fri, 9 Dec 2022 17:16:42 +0100
Subject: [PATCH 1/1] Add CMakeLists.txt
---
tflite_minimal/CMakeLists.txt | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 tflite_minimal/CMakeLists.txt
diff --git a/tflite_minimal/CMakeLists.txt b/tflite_minimal/CMakeLists.txt
new file mode 100644
index 0000000..dc984d3
--- /dev/null
+++ b/tflite_minimal/CMakeLists.txt
@@ -0,0 +1,28 @@
+#
+# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+# Builds the minimal Tensorflow Lite example.
+
+cmake_minimum_required(VERSION 3.16)
+project(stream C CXX)
+set(CMAKE_CXX_STANDARD 17)
+
+find_package(tensorflow-lite REQUIRED)
+
+set(TARGET minimal)
+add_executable(${TARGET} minimal.cc)
+target_link_libraries(${TARGET} tensorflow-lite)
+install(TARGETS ${TARGET} DESTINATION bin)
--
2.34.1