1# Copyright (c) 2022 Synopsys
2# SPDX-License-Identifier: Apache-2.0
3
4cmake_minimum_required(VERSION 3.20.0)
5find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
6project(dsp_sharing)
7
8target_sources(app PRIVATE
9    src/main.c
10    src/load_store.c
11    )
12
13if(COMPILER STREQUAL arcmwdt)
14zephyr_include_directories(${ARCMWDT_TOOLCHAIN_PATH}/MetaWare/arc/lib/src/fx/include/)
15target_sources(app PRIVATE src/calculation_arc.c)
16get_property(Z_ARC_DSP_OPTIONS GLOBAL PROPERTY z_arc_dsp_options)
17target_compile_options(app PRIVATE ${Z_ARC_DSP_OPTIONS})
18endif()
19