mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
4f1a856dbf
* Philosophical: "explicit is better than implicit". * Practical: Allows useful errors if invalid directories given in components as the defaults aren't always used. Also trims the -I path from a number of components that have no actual include directory. * Simplifies knowing which components will be header-only and which won't
16 lines
659 B
CMake
16 lines
659 B
CMake
# 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(CMAKE_TOOLCHAIN_FILE $ENV{IDF_PATH}/toolchain.cmake)
|
|
|
|
project(subscribe_publish ASM C CXX)
|
|
|
|
set(MAIN_SRCS main/subscribe_publish_sample.c)
|
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
|
|
# 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)
|