Kristofer Jonsson | 641c091 | 2020-08-31 11:34:14 +0200 | [diff] [blame] | 1 | # |
Jonny Svärd | 5adf5a6 | 2022-02-09 16:42:10 +0100 | [diff] [blame] | 2 | # Copyright (c) 2019-2022 Arm Limited. All rights reserved. |
Kristofer Jonsson | 641c091 | 2020-08-31 11:34:14 +0200 | [diff] [blame] | 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 | |
Kristofer Jonsson | 641c091 | 2020-08-31 11:34:14 +0200 | [diff] [blame] | 19 | set(TR_PRINT_OUTPUT_BYTES "" CACHE STRING "Print output data.") |
| 20 | |
| 21 | add_library(inference_process STATIC) |
Anton Moberg | 66ed182 | 2021-02-10 08:49:28 +0100 | [diff] [blame] | 22 | |
Kristofer Jonsson | 311d653 | 2022-08-30 12:06:25 +0200 | [diff] [blame] | 23 | target_include_directories(inference_process PUBLIC include) |
Jens Elofsson | 955288a | 2021-04-22 20:57:15 +0200 | [diff] [blame] | 24 | |
Jonny Svärd | 5adf5a6 | 2022-02-09 16:42:10 +0100 | [diff] [blame] | 25 | target_link_libraries(inference_process PRIVATE tflu cmsis_core cmsis_device ethosu_crc) |
Kristofer Jonsson | 311d653 | 2022-08-30 12:06:25 +0200 | [diff] [blame] | 26 | |
Jens Elofsson | 701a63b | 2021-05-23 17:37:07 +0200 | [diff] [blame] | 27 | if (TARGET layer_by_layer_profiler) |
| 28 | target_link_libraries(inference_process PRIVATE layer_by_layer_profiler) |
Jens Elofsson | 955288a | 2021-04-22 20:57:15 +0200 | [diff] [blame] | 29 | endif() |
Kristofer Jonsson | 311d653 | 2022-08-30 12:06:25 +0200 | [diff] [blame] | 30 | |
Jens Elofsson | 955288a | 2021-04-22 20:57:15 +0200 | [diff] [blame] | 31 | if (TARGET arm_profiler) |
| 32 | target_link_libraries(inference_process PRIVATE arm_profiler) |
| 33 | endif() |
Kristofer Jonsson | 311d653 | 2022-08-30 12:06:25 +0200 | [diff] [blame] | 34 | |
Anton Moberg | 07cf70b | 2021-07-07 11:08:17 +0200 | [diff] [blame] | 35 | if (TARGET ethosu_log) |
| 36 | target_link_libraries(inference_process PRIVATE ethosu_log) |
| 37 | endif() |
Jens Elofsson | 955288a | 2021-04-22 20:57:15 +0200 | [diff] [blame] | 38 | |
Jonny Svärd | 5adf5a6 | 2022-02-09 16:42:10 +0100 | [diff] [blame] | 39 | target_sources(inference_process PRIVATE src/inference_process.cpp) |
Ledion Daja | a7d025a | 2022-11-21 09:23:50 +0100 | [diff] [blame^] | 40 | |
| 41 | if (DEFINED INFERENCE_PROCESS_OPS_RESOLVER) |
| 42 | target_compile_definitions(inference_process PRIVATE INFERENCE_PROCESS_OPS_RESOLVER=${INFERENCE_PROCESS_OPS_RESOLVER}) |
| 43 | endif() |