1# SPDX-License-Identifier: Apache-2.0
2
3cmake_minimum_required(VERSION 3.20.0)
4find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5project(thread_metric)
6
7FILE(GLOB app_sources src/tm_porting_layer_zephyr.c)
8target_sources(app PRIVATE ${app_sources})
9target_sources_ifdef(CONFIG_TM_BASIC                 app PRIVATE src/tm_basic_processing_test.c)
10target_sources_ifdef(CONFIG_TM_COOPERATIVE           app PRIVATE src/tm_cooperative_scheduling_test.c)
11target_sources_ifdef(CONFIG_TM_INTERRUPT             app PRIVATE src/tm_interrupt_processing_test.c)
12target_sources_ifdef(CONFIG_TM_INTERRUPT_PREEMPTION  app PRIVATE src/tm_interrupt_preemption_processing_test.c)
13target_sources_ifdef(CONFIG_TM_MEMORY_ALLOCATION     app PRIVATE src/tm_memory_allocation_test.c)
14target_sources_ifdef(CONFIG_TM_MESSAGE               app PRIVATE src/tm_message_processing_test.c)
15target_sources_ifdef(CONFIG_TM_PREEMPTIVE            app PRIVATE src/tm_preemptive_scheduling_test.c)
16target_sources_ifdef(CONFIG_TM_SYNCHRONIZATION       app PRIVATE src/tm_synchronization_processing_test.c)
17