2018-12-11 23:33:23 +08:00
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
2018-06-29 00:28:52 +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)
|
2018-10-25 22:54:09 +08:00
|
|
|
project(led_pca9633)
|
2018-06-29 00:28:52 +08:00
|
|
|
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
|
|
target_sources(app PRIVATE ${app_sources})
|