1# SPDX-License-Identifier: Apache-2.0
2
3cmake_minimum_required(VERSION 3.20.0)
4find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5project(sched_userspace_bench)
6
7set_property(
8   SOURCE src/user.c
9   PROPERTY COMPILE_DEFINITIONS
10   __ZEPHYR_USER__
11)
12
13set_property(
14   SOURCE src/main.c
15   PROPERTY COMPILE_DEFINITIONS
16   __ZEPHYR_SUPERVISOR__
17)
18
19target_sources(app PRIVATE src/main.c src/user.c)
20
21target_include_directories(app PRIVATE
22  ${ZEPHYR_BASE}/kernel/include
23  ${ZEPHYR_BASE}/arch/${ARCH}/include
24  )
25