esp-idf/examples/protocols/aws_iot/subscribe_publish/CMakeLists.txt
Angus Gratton ce6748873d cmake: Add embedding files in components support
Add subscribe_publish AWS example and fixes to allow it to build.
2018-04-30 09:59:20 +10:00

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})