16 lines
536 B
CMake
16 lines
536 B
CMake
|
#-------------------------------------------------------------------------------
|
||
|
# Zephyr Example Application
|
||
|
#
|
||
|
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||
|
# SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
cmake_minimum_required(VERSION 3.13.1)
|
||
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||
|
|
||
|
project(app LANGUAGES C VERSION 1.0.0)
|
||
|
|
||
|
configure_file(app_version.h.in ${CMAKE_BINARY_DIR}/app/include/app_version.h)
|
||
|
target_include_directories(app PRIVATE ${CMAKE_BINARY_DIR}/app/include src)
|
||
|
|
||
|
target_sources(app PRIVATE src/main.c src/foo.c)
|