2018-01-17 00:25:14 -05:00
|
|
|
# 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)
|
2018-01-19 00:22:08 -05:00
|
|
|
|
|
|
|
set(MAIN_SRCS main/subscribe_publish_sample.c)
|
2018-01-17 00:25:14 -05:00
|
|
|
|
2018-01-19 00:22:08 -05:00
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
2018-02-27 01:44:31 -05:00
|
|
|
project(subscribe_publish)
|
2018-01-17 00:25:14 -05:00
|
|
|
|
2018-01-19 00:22:08 -05:00
|
|
|
# Embed the certificate data directly in the built binary
|
2018-01-17 00:25:14 -05:00
|
|
|
target_add_binary_data(subscribe_publish.elf main/certs/aws-root-ca.pem TEXT)
|
|
|
|
target_add_binary_data(subscribe_publish.elf main/certs/certificate.pem.crt TEXT)
|
|
|
|
target_add_binary_data(subscribe_publish.elf main/certs/private.pem.key TEXT)
|