cmake: Add CMakeLists.txt files for all examples

Generating using convert_to_cmake.py, with some minor cleanup
This commit is contained in:
Angus Gratton 2018-02-27 17:44:31 +11:00 committed by Angus Gratton
parent 9d88d13f77
commit 800bffb8b0
74 changed files with 615 additions and 27 deletions

View file

@ -1,4 +1,21 @@
set(COMPONENT_SRCDIRS ".")
set(COMPONENT_SRCDIRS "." "gcov")
set(COMPONENT_ADD_INCLUDEDIRS "include")
if (CONFIG_SYSVIEW_ENABLE)
list(APPEND COMPONENT_ADD_INCLUDEDIRS
sys_view/Config
sys_view/SEGGER
sys_view/Sample/OS)
list(APPEND COMPONENT_SRCDIRS
"sys_view/SEGGER"
"sys_view/Sample/OS"
"sys_view/Sample/Config"
"sys_view/esp32")
endif()
register_component()
# disable --coverage for this component, as it is used as transport
# for gcov
component_compile_options("-fno-profile-arcs" "-fno-test-coverage")

View file

@ -5,35 +5,24 @@ endif()
set(COMPONENT_SRCDIRS .)
set(COMPONENT_ADD_INCLUDEDIRS include)
target_link_libraries("-L ${CMAKE_CURRENT_LIST_DIR}/lib")
target_link_libraries(bt btdm_app)
if(CONFIG_BLUEDROID_ENABLED)
set(COMPONENT_ADD_INCLUDEDIRS ${COMPONENT_ADD_INCLUDEDIRS}
list(APPEND COMPONENT_ADD_INCLUDEDIRS
bluedroid/bta/include
bluedroid/bta/sys/include
bluedroid/btcore/include
bluedroid/device/include
bluedroid/gki/include
bluedroid/hci/include
bluedroid/osi/include
bluedroid/utils/include
bluedroid/external/sbc/decoder/include
bluedroid/btc/core/include
bluedroid/external/sbc/encoder/include
bluedroid/btc/profile/esp/blufi/include
bluedroid/btc/profile/esp/include
bluedroid/btc/profile/std/gatt/include
bluedroid/btc/profile/std/gap/include
bluedroid/btc/profile/std/a2dp/include
bluedroid/btc/profile/std/include
bluedroid/btc/include
bluedroid/btif/include
bluedroid/stack/btm/include
bluedroid/stack/btu/include
bluedroid/stack/gap/include
bluedroid/stack/gatt/include
bluedroid/stack/hcic/include
bluedroid/stack/l2cap/include
bluedroid/stack/sdp/include
bluedroid/stack/smp/include
@ -43,11 +32,10 @@ if(CONFIG_BLUEDROID_ENABLED)
bluedroid/stack/a2dp/include
bluedroid/stack/rfcomm/include
bluedroid/stack/include
bluedroid/utils/include
bluedroid/api/include
bluedroid/include)
set(COMPONENT_SRCDIRS ${COMPONENT_SRCDIRS}
list(APPEND COMPONENT_SRCDIRS
bluedroid/bta/dm
bluedroid/bta/gatt
bluedroid/bta/hh
@ -56,15 +44,14 @@ if(CONFIG_BLUEDROID_ENABLED)
bluedroid/bta/ar
bluedroid/bta/sys
bluedroid/bta/jv
bluedroid/bta
bluedroid/btcore
bluedroid/btif
bluedroid/device
bluedroid/gki
bluedroid/hci
bluedroid/main
bluedroid/osi
bluedroid/external/sbc/decoder/srce
bluedroid/external/sbc/encoder/srce
bluedroid/btc/core
bluedroid/btc/profile/esp/blufi
bluedroid/btc/profile/std/gap
@ -72,13 +59,11 @@ if(CONFIG_BLUEDROID_ENABLED)
bluedroid/btc/profile/std/a2dp
bluedroid/btc/profile/std/avrc
bluedroid/btc/profile/std/spp
bluedroid/btc/profile
bluedroid/stack/btm
bluedroid/stack/btu
bluedroid/stack/gap
bluedroid/stack/gatt
bluedroid/stack/hcic
bluedroid/stack/include
bluedroid/stack/l2cap
bluedroid/stack/sdp
bluedroid/stack/smp
@ -87,11 +72,12 @@ if(CONFIG_BLUEDROID_ENABLED)
bluedroid/stack/avdt
bluedroid/stack/a2dp
bluedroid/stack/rfcomm
bluedroid/stack
bluedroid/utils
bluedroid/api
bluedroid)
)
endif()
register_component()
target_link_libraries(bt "-L${CMAKE_CURRENT_LIST_DIR}/lib")
target_link_libraries(bt btdm_app)

View file

@ -0,0 +1,12 @@
# The following 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/bt_app_av.c
main/bt_app_core.c
main/main.c
)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(a2dp_sink)

View file

@ -0,0 +1,11 @@
# The following 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/bt_app_core.c
main/main.c
)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(a2dp_source)

View file

@ -0,0 +1,10 @@
# The following 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/app_bt.c
)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ble_adv)

View file

@ -0,0 +1,8 @@
# 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/esp_eddystone_api.c main/esp_eddystone_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ble_eddystone_demo)

View file

@ -0,0 +1,8 @@
# 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/ibeacon_demo.c main/esp_ibeacon_api.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ble_ibeacon_demo)

View file

@ -0,0 +1,8 @@
# 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/spp_client_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(spp_client_demo)

View file

@ -0,0 +1,8 @@
# 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/ble_spp_server_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ble_spp_server_demo)

View file

@ -0,0 +1,8 @@
# 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/blufi_security.c main/blufi_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(blufi_demo)

View file

@ -0,0 +1,8 @@
# 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/bt_discovery.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_discovery)

View file

@ -0,0 +1,8 @@
# 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/example_spp_acceptor_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_spp_acceptor_demo)

View file

@ -0,0 +1,8 @@
# 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/example_spp_initiator_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_spp_initiator_demo)

View file

@ -0,0 +1,8 @@
# 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/controller_hci_uart_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(controller_hci_uart)

View file

@ -0,0 +1,8 @@
# 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/gattc_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(gatt_client_demo)

View file

@ -0,0 +1,8 @@
# 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/example_ble_sec_gattc_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(sec_gattc_demo)

View file

@ -0,0 +1,8 @@
# 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/example_ble_sec_gatts_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(sec_gatts_demo)

View file

@ -0,0 +1,8 @@
# 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/gatts_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(gatt_server_demos)

View file

@ -0,0 +1,8 @@
# 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/gatts_table_creat_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(gatt_server_service_table_demo)

View file

@ -0,0 +1,8 @@
# 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/gattc_multi_connect.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(gatt_multi_connect)

View file

@ -0,0 +1,8 @@
# 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/ethernet_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ethernet_demo)

View file

@ -1,4 +1,4 @@
# The following five lines of boilerplate have to be in your project's
# The following 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)

View file

@ -0,0 +1,8 @@
# 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/adc1_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(adc)

View file

@ -0,0 +1,8 @@
# 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/adc2_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(adc2)

View file

@ -0,0 +1,8 @@
# 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/gpio_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(gpio)

View file

@ -0,0 +1,8 @@
# 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/i2c_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(i2c)

View file

@ -0,0 +1,8 @@
# 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/i2s_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(esp32-i2s-driver-example)

View file

@ -0,0 +1,8 @@
# 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/app_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(i2s-adc-dac)

View file

@ -0,0 +1,8 @@
# 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/ledc_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ledc)

View file

@ -0,0 +1,8 @@
# 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/pcnt_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(pcnt)

View file

@ -0,0 +1,8 @@
# 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/infrared_nec_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(infrared_nec)

View file

@ -0,0 +1,8 @@
# 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/rmt_tx_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(rmt_tx)

View file

@ -0,0 +1,8 @@
# 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/sigmadelta_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(sigmadelta)

View file

@ -0,0 +1,8 @@
# 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/spi_master_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(spi_master)

View file

@ -0,0 +1,8 @@
# 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/timer_group_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(timer_group)

View file

@ -0,0 +1,8 @@
# 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/tp_interrupt_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(touch_pad_interrupt)

View file

@ -0,0 +1,8 @@
# 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/tp_read_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(touch_pad_read)

View file

@ -0,0 +1,8 @@
# 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/uart_async_rxtxtasks_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(uart_async_rxtxtasks)

View file

@ -0,0 +1,8 @@
# 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/uart_echo_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(uart_echo)

View file

@ -0,0 +1,8 @@
# 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/uart_events_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(uart_events)

View file

@ -1,13 +1,11 @@
# 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)
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)

View file

@ -0,0 +1,13 @@
# 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/thing_shadow_sample.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(thing_shadow)
# Embed the certificate data directly in the built binary
target_add_binary_data(thing_shadow.elf main/certs/aws-root-ca.pem TEXT)
target_add_binary_data(thing_shadow.elf main/certs/certificate.pem.crt TEXT)
target_add_binary_data(thing_shadow.elf main/certs/private.pem.key TEXT)

View file

@ -0,0 +1,8 @@
# 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/coap_client_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(coap_client)

View file

@ -0,0 +1,8 @@
# 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/coap_server_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(coap_server)

View file

@ -0,0 +1,8 @@
# 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/http2_request_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(http2-request)

View file

@ -0,0 +1,5 @@
set(COMPONENT_ADD_INCLUDEDIRS .)
set(COMPONENT_SRCDIRS .)
register_component()

View file

@ -0,0 +1,8 @@
# 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/http_request_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(http-request)

View file

@ -0,0 +1,14 @@
# The following five 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/https_request_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(https_request)
# Embed the server root certificate into the final binary
#
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
target_add_binary_data(https_request.elf
"main/server_root_cert.pem" TEXT)

View file

@ -0,0 +1,8 @@
# 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/mdns_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(mdns-test)

View file

@ -0,0 +1,8 @@
# 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/openssl_client_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(openssl_client)

View file

@ -0,0 +1,12 @@
# 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/openssl_server_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(openssl_server)
# Embed the certificate & key data directly in the built binary
target_add_binary_data(openssl_server.elf main/cacert.pem TEXT)
target_add_binary_data(openssl_server.elf main/prvtkey.pem TEXT)

View file

@ -0,0 +1,8 @@
# 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/pppos_client_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(pppos_client)

View file

@ -0,0 +1,8 @@
# 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/sntp_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(sntp)

View file

@ -0,0 +1,8 @@
# 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/udp_multicast_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(udp-multicast)

View file

@ -0,0 +1,8 @@
# 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/nvs_blob_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(nvs-rw-blob)

View file

@ -0,0 +1,8 @@
# 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/nvs_value_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(nvs-rw-value)

View file

@ -0,0 +1,8 @@
# 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/sd_card_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(sd_card)

View file

@ -0,0 +1,8 @@
# 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/spiffs_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(spiffs)

View file

@ -0,0 +1,8 @@
# 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/wear_levelling_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(wear_levelling_example)

View file

@ -0,0 +1,8 @@
# 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/app_trace_to_host_test.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(app_trace_to_host_test)

View file

@ -0,0 +1,8 @@
# 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/base_mac_address_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(base_mac_address)

View file

@ -0,0 +1,8 @@
# 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/cmd_wifi.c main/console_example_main.c main/cmd_system.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(console)

View file

@ -0,0 +1,8 @@
# 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/deep_sleep_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(deep_sleep)

View file

@ -0,0 +1,8 @@
# 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/gcov_example_func.c main/gcov_example.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(gcov_example)

View file

@ -0,0 +1,8 @@
# 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/ota_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ota)

View file

@ -0,0 +1,8 @@
# 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/task_watchdog_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(task_watchdog)

View file

@ -0,0 +1,8 @@
# 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/espnow_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(espnow_example)

View file

@ -0,0 +1,8 @@
# 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/cmd_wifi.c main/main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(iperf)

View file

@ -0,0 +1,5 @@
set(COMPONENT_ADD_INCLUDEDIRS .)
set(COMPONENT_SRCDIRS .)
register_component()

View file

@ -0,0 +1,8 @@
# 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/power_save.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(power_save)

View file

@ -0,0 +1,8 @@
# 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/scan.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(scan)

View file

@ -0,0 +1,8 @@
# 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/smartconfig_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(smart_config)

View file

@ -0,0 +1,17 @@
# (Automatically converted from project Makefile by convert_to_cmake.py.)
# 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/wpa2_enterprise_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(wpa2-enterprise)
# Embed CA, certificate & key directly into binary
target_add_binary_data(wpa2-enterprise.elf main/wpa2_ca.pem TEXT)
target_add_binary_data(wpa2-enterprise.elf main/wpa2_client.crt TEXT)
target_add_binary_data(wpa2-enterprise.elf main/wpa2_client.key TEXT)

View file

@ -0,0 +1,8 @@
# 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/wps.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(wps_example)