2021-08-29 12:44:17 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2022-07-03 03:36:23 +08:00
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
2021-08-29 12:44:17 +08:00
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
|
|
project(smf)
|
|
|
|
|
|
|
|
target_sources(app PRIVATE src/main.c)
|
|
|
|
|
2023-12-22 00:12:10 +08:00
|
|
|
if(CONFIG_SMF_INITIAL_TRANSITION)
|
2024-04-21 11:43:43 +08:00
|
|
|
target_sources(app PRIVATE src/test_lib_self_transition_smf.c)
|
2023-12-22 00:12:10 +08:00
|
|
|
elseif(CONFIG_SMF_ANCESTOR_SUPPORT)
|
2021-08-29 12:44:17 +08:00
|
|
|
target_sources(app PRIVATE src/test_lib_hierarchical_smf.c
|
|
|
|
src/test_lib_hierarchical_5_ancestor_smf.c)
|
|
|
|
else()
|
|
|
|
target_sources(app PRIVATE src/test_lib_flat_smf.c)
|
|
|
|
endif()
|