1# Top-level CMakeLists.txt for the skeleton application. 2# 3# Copyright (c) 2017 Open Source Foundries Limited 4# Copyright (c) 2018 Foundries.io Ltd 5# 6# SPDX-License-Identifier: Apache-2.0 7# 8# This provides a basic application structure suitable for loading by 9# mcuboot, which is easy to customize on a per-board basis. It can be 10# used as a starting point for new applications. 11 12cmake_minimum_required(VERSION 3.8) 13 14# find_package(Zephyr) in order to load application boilerplate: 15# https://docs.zephyrproject.org/latest/develop/application/index.html 16find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 17project(NONE) 18 19# This string ends up getting printed in the device console 20if (NOT DEFINED FROM_WHO) 21 set(FROM_WHO Zephyr) 22endif() 23 24target_compile_definitions(app PRIVATE "-DMCUBOOT_HELLO_WORLD_FROM=\"${FROM_WHO}\"") 25 26target_sources(app PRIVATE src/main.c) 27