cmake: Add CMakeLists.txt files for all examples

Generating using convert_to_cmake.py, with some minor cleanup
This commit is contained in:
Angus Gratton
2018-02-27 17:44:31 +11:00
committed by Angus Gratton
parent 9d88d13f77
commit 800bffb8b0
74 changed files with 615 additions and 27 deletions
@@ -0,0 +1,12 @@
# The following four 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)
set(MAIN_SRCS main/openssl_server_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(openssl_server)
# Embed the certificate & key data directly in the built binary
target_add_binary_data(openssl_server.elf main/cacert.pem TEXT)
target_add_binary_data(openssl_server.elf main/prvtkey.pem TEXT)