mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
19 lines
739 B
CMake
19 lines
739 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(idf_project ASM C CXX)
|
||
|
|
||
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||
|
|
||
|
add_executable(subscribe_publish.elf
|
||
|
main/subscribe_publish_sample.c)
|
||
|
|
||
|
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)
|
||
|
|
||
|
# TODO: handle IDF_CI_BUILD dummy cert files here
|
||
|
|
||
|
target_link_libraries(subscribe_publish.elf ${COMPONENT_LIBRARIES})
|