2018-08-16 22:57:51 +08:00
|
|
|
cmake_minimum_required(VERSION 3.8.2)
|
2018-07-19 00:19:35 +08:00
|
|
|
macro(set_conf_file)
|
|
|
|
if(EXISTS ${APPLICATION_SOURCE_DIR}/boards/${BOARD}.conf)
|
|
|
|
set(CONF_FILE "prj.conf ${APPLICATION_SOURCE_DIR}/boards/${BOARD}.conf")
|
|
|
|
else()
|
|
|
|
set(CONF_FILE "prj.conf")
|
|
|
|
endif()
|
|
|
|
endmacro()
|
|
|
|
|
|
|
|
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
|
|
|
project(NONE)
|
|
|
|
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
|
|
target_sources(app PRIVATE ${app_sources})
|