From 90f9df900acdc0718ecd2dfdc53780664758dec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonny=20Sv=C3=A4rd?= Date: Tue, 4 Apr 2023 16:50:44 +0200 Subject: CMakeLists: Define ETHOSU macro Change-Id: Iebbf8243fe97cc9195920e1ba3f4b35005e7c01a --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7cd9e1..a5a4bd3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright (c) 2019-2021 Arm Limited. All rights reserved. +# SPDX-FileCopyrightText: Copyright 2019-2021, 2023 Arm Limited and/or its affiliates # # SPDX-License-Identifier: Apache-2.0 # @@ -83,6 +83,9 @@ install(TARGETS ethosu_core_driver LIBRARY DESTINATION "lib") install(FILES include/ethosu_device.h include/ethosu_driver.h include/pmu_ethosu.h DESTINATION "include") +# Define ETHOSU macro +target_compile_definitions(ethosu_core_driver PUBLIC ETHOSU) + # # Print build status # -- cgit v1.2.1