esp-idf/examples/protocols/aws_iot/subscribe_publish/CMakeLists.txt

14 lines
591 B
CMake
Raw Normal View History

# 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/subscribe_publish_sample.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(subscribe_publish)
# Embed the certificate data directly in the built binary
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)