2020-04-14 21:50:57 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-08-10 20:44:56 +08:00
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
2020-04-14 21:50:57 +08:00
|
|
|
|
2021-10-29 02:46:08 +08:00
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
2020-04-14 21:50:57 +08:00
|
|
|
project(syscall_perf)
|
|
|
|
|
|
|
|
set_property(
|
|
|
|
SOURCE src/test_user.c
|
|
|
|
PROPERTY COMPILE_DEFINITIONS
|
|
|
|
__ZEPHYR_USER__
|
|
|
|
)
|
|
|
|
|
|
|
|
set_property(
|
|
|
|
SOURCE src/test_supervisor.c
|
|
|
|
PROPERTY COMPILE_DEFINITIONS
|
|
|
|
__ZEPHYR_SUPERVISOR__
|
|
|
|
)
|
|
|
|
|
|
|
|
target_sources(app PRIVATE src/main.c src/test_user.c src/test_supervisor.c)
|