blob: 47fae196d0acc32212695e7a580200af639d302d [file] [log] [blame]
Kristofer Jonsson641c0912020-08-31 11:34:14 +02001#
Jonny Svärd5adf5a62022-02-09 16:42:10 +01002# Copyright (c) 2019-2022 Arm Limited. All rights reserved.
Kristofer Jonsson641c0912020-08-31 11:34:14 +02003#
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
Kristofer Jonsson641c0912020-08-31 11:34:14 +020019set(TR_PRINT_OUTPUT_BYTES "" CACHE STRING "Print output data.")
20
21add_library(inference_process STATIC)
Anton Moberg66ed1822021-02-10 08:49:28 +010022
Kristofer Jonsson311d6532022-08-30 12:06:25 +020023target_include_directories(inference_process PUBLIC include)
Jens Elofsson955288a2021-04-22 20:57:15 +020024
Jonny Svärd5adf5a62022-02-09 16:42:10 +010025target_link_libraries(inference_process PRIVATE tflu cmsis_core cmsis_device ethosu_crc)
Kristofer Jonsson311d6532022-08-30 12:06:25 +020026
Jens Elofsson701a63b2021-05-23 17:37:07 +020027if (TARGET layer_by_layer_profiler)
28 target_link_libraries(inference_process PRIVATE layer_by_layer_profiler)
Jens Elofsson955288a2021-04-22 20:57:15 +020029endif()
Kristofer Jonsson311d6532022-08-30 12:06:25 +020030
Jens Elofsson955288a2021-04-22 20:57:15 +020031if (TARGET arm_profiler)
32 target_link_libraries(inference_process PRIVATE arm_profiler)
33endif()
Kristofer Jonsson311d6532022-08-30 12:06:25 +020034
Anton Moberg07cf70b2021-07-07 11:08:17 +020035if (TARGET ethosu_log)
36 target_link_libraries(inference_process PRIVATE ethosu_log)
37endif()
Jens Elofsson955288a2021-04-22 20:57:15 +020038
Jonny Svärd5adf5a62022-02-09 16:42:10 +010039target_sources(inference_process PRIVATE src/inference_process.cpp)