1# SPDX-License-Identifier: Apache-2.0
2
3cmake_minimum_required(VERSION 3.20.0)
4find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5project(fpu_sharing)
6
7# Some boards are significantly slower than others resulting in the test
8# output being in the range of every few seconds to every few minutes. To
9# compensate for this, one can control the number of iterations in the PI
10# calculation through PI_NUM_ITERATIONS. Lowering this value will increase
11# the speed of the test but it will come at the expense of precision.
12
13set_ifndef(PI_NUM_ITERATIONS 700000)
14zephyr_compile_definitions(PI_NUM_ITERATIONS=${PI_NUM_ITERATIONS})
15
16FILE(GLOB app_sources src/*.c)
17target_sources(app PRIVATE ${app_sources})
18