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

@ -0,0 +1,6 @@
# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(https_wolfssl)

View File

@ -0,0 +1,10 @@
set(COMPONENT_SRCS "https_wolfssl_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
# Embed the server root certificate into the final binary
#
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
set(COMPONENT_EMBED_TXTFILES server_root_cert.pem)
register_component()