Kristofer Jonsson | 641c091 | 2020-08-31 11:34:14 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2019-2020 Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | # |
| 6 | # Licensed under the Apache License, Version 2.0 (the License); you may |
| 7 | # not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an AS IS BASIS, WITHOUT |
| 14 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | # |
| 18 | |
| 19 | set(TR_ARENA_SIZE "200000" CACHE STRING "Arena size.") |
| 20 | set(TR_PRINT_OUTPUT_BYTES "" CACHE STRING "Print output data.") |
| 21 | |
| 22 | add_library(inference_process STATIC) |
| 23 | target_include_directories(inference_process PUBLIC include |
| 24 | PRIVATE ${TENSORFLOW_PATH} ${TENSORFLOW_PATH}/tensorflow/lite/micro/tools/make/downloads/flatbuffers/include) |
| 25 | target_link_libraries(inference_process PUBLIC tflu cmsis_core cmsis_device) |
| 26 | target_sources(inference_process PRIVATE src/inference_process.cc) |
| 27 | |
| 28 | # Set arena size |
| 29 | target_compile_definitions(inference_process PRIVATE TENSOR_ARENA_SIZE=${TR_ARENA_SIZE}) |