feat(examples): Add cmake compiler script for examples

This commit is contained in:
dongheng
2019-05-07 14:46:24 +08:00
parent cca13e0f99
commit 268e9d5846
72 changed files with 315 additions and 7 deletions

View File

@ -2,7 +2,5 @@
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(MAIN_SRCS main/coap_server_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(coap_server)

View File

@ -0,0 +1,4 @@
set(COMPONENT_SRCS "coap_server_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()