2019-09-27 20:19:35 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
|
|
|
|
2020-02-04 05:29:46 +08:00
|
|
|
if(BOARD MATCHES "qemu_.*")
|
|
|
|
list(APPEND QEMU_EXTRA_FLAGS -serial file:channel0_0)
|
|
|
|
endif()
|
|
|
|
|
2020-05-29 12:02:17 +08:00
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
2019-09-27 20:19:35 +08:00
|
|
|
project(tracing_tests)
|
|
|
|
|
|
|
|
target_sources(app PRIVATE src/main.c)
|
2020-02-04 05:29:46 +08:00
|
|
|
|
|
|
|
target_sources_ifdef(
|
|
|
|
CONFIG_TRACING_TEST
|
|
|
|
app PRIVATE
|
|
|
|
src/tracing_string_format_test.c
|
|
|
|
)
|