1# SPDX-License-Identifier: Apache-2.0
2cmake_minimum_required(VERSION 3.20.0)
3
4find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5project(benchmark)
6
7set(app_sources src/benchmark.c)
8
9if(CONFIG_BM_LISTENERS)
10  list(APPEND app_sources src/lis.c)
11
12elseif(CONFIG_BM_SUBSCRIBERS)
13  list(APPEND app_sources src/sub.c)
14
15elseif(CONFIG_BM_MSG_SUBSCRIBERS)
16  list(APPEND app_sources src/msg_sub.c)
17
18endif()
19
20target_sources(app PRIVATE ${app_sources})
21