mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-20 16:46:17 +08:00
feat(examples): Add cmake compiler script for examples
This commit is contained in:
6
examples/get-started/project_template/CMakeLists.txt
Normal file
6
examples/get-started/project_template/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(project_template)
|
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCDIRS "folder1" "folder2")
|
||||
|
||||
register_component()
|
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "user_main.c")
|
||||
|
||||
register_component()
|
6
examples/peripherals/adc/CMakeLists.txt
Normal file
6
examples/peripherals/adc/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(adc)
|
3
examples/peripherals/adc/main/CMakeLists.txt
Normal file
3
examples/peripherals/adc/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "adc_example_main.c")
|
||||
|
||||
register_component()
|
6
examples/peripherals/gpio/CMakeLists.txt
Normal file
6
examples/peripherals/gpio/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(gpio)
|
3
examples/peripherals/gpio/main/CMakeLists.txt
Normal file
3
examples/peripherals/gpio/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "user_main.c")
|
||||
|
||||
register_component()
|
6
examples/peripherals/hw_timer/CMakeLists.txt
Normal file
6
examples/peripherals/hw_timer/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(hw_timer)
|
3
examples/peripherals/hw_timer/main/CMakeLists.txt
Normal file
3
examples/peripherals/hw_timer/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "hw_timer_example_main.c")
|
||||
|
||||
register_component()
|
6
examples/peripherals/i2c/CMakeLists.txt
Normal file
6
examples/peripherals/i2c/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(i2c)
|
3
examples/peripherals/i2c/main/CMakeLists.txt
Normal file
3
examples/peripherals/i2c/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "user_main.c")
|
||||
|
||||
register_component()
|
6
examples/peripherals/i2s/CMakeLists.txt
Normal file
6
examples/peripherals/i2s/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(i2s)
|
3
examples/peripherals/i2s/main/CMakeLists.txt
Normal file
3
examples/peripherals/i2s/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "i2s_example_main.c")
|
||||
|
||||
register_component()
|
6
examples/peripherals/pwm/CMakeLists.txt
Normal file
6
examples/peripherals/pwm/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(pwm)
|
3
examples/peripherals/pwm/main/CMakeLists.txt
Normal file
3
examples/peripherals/pwm/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "pwm_example_main.c")
|
||||
|
||||
register_component()
|
6
examples/peripherals/spi_master/CMakeLists.txt
Normal file
6
examples/peripherals/spi_master/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(spi_master)
|
3
examples/peripherals/spi_master/main/CMakeLists.txt
Normal file
3
examples/peripherals/spi_master/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "spi_master_example_main.c")
|
||||
|
||||
register_component()
|
6
examples/peripherals/spi_oled/CMakeLists.txt
Normal file
6
examples/peripherals/spi_oled/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(spi_oled)
|
3
examples/peripherals/spi_oled/main/CMakeLists.txt
Normal file
3
examples/peripherals/spi_oled/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "spi_oled_example_main.c")
|
||||
|
||||
register_component()
|
6
examples/peripherals/spi_slave/CMakeLists.txt
Normal file
6
examples/peripherals/spi_slave/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(spi_slave)
|
3
examples/peripherals/spi_slave/main/CMakeLists.txt
Normal file
3
examples/peripherals/spi_slave/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "spi_slave_example_main.c")
|
||||
|
||||
register_component()
|
6
examples/peripherals/uart_echo/CMakeLists.txt
Normal file
6
examples/peripherals/uart_echo/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(uart_echo)
|
3
examples/peripherals/uart_echo/main/CMakeLists.txt
Normal file
3
examples/peripherals/uart_echo/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "uart_echo_example_main.c")
|
||||
|
||||
register_component()
|
6
examples/peripherals/uart_events/CMakeLists.txt
Normal file
6
examples/peripherals/uart_events/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(uart_event)
|
3
examples/peripherals/uart_events/main/CMakeLists.txt
Normal file
3
examples/peripherals/uart_events/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "uart_events_example_main.c")
|
||||
|
||||
register_component()
|
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(subscribe_publish)
|
@ -0,0 +1,11 @@
|
||||
set(COMPONENT_SRCS "subscribe_publish_sample.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
|
||||
register_component()
|
||||
|
||||
if(CONFIG_EXAMPLE_EMBEDDED_CERTS)
|
||||
target_add_binary_data(${COMPONENT_NAME} "certs/aws-root-ca.pem" TEXT)
|
||||
target_add_binary_data(${COMPONENT_NAME} "certs/certificate.pem.crt" TEXT)
|
||||
target_add_binary_data(${COMPONENT_NAME} "certs/private.pem.key" TEXT)
|
||||
endif()
|
6
examples/protocols/aws_iot/thing_shadow/CMakeLists.txt
Normal file
6
examples/protocols/aws_iot/thing_shadow/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(thing_shadow)
|
11
examples/protocols/aws_iot/thing_shadow/main/CMakeLists.txt
Normal file
11
examples/protocols/aws_iot/thing_shadow/main/CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
set(COMPONENT_SRCS "thing_shadow_sample.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
|
||||
register_component()
|
||||
|
||||
if(CONFIG_EXAMPLE_EMBEDDED_CERTS)
|
||||
target_add_binary_data(${COMPONENT_NAME} "certs/aws-root-ca.pem" TEXT)
|
||||
target_add_binary_data(${COMPONENT_NAME} "certs/certificate.pem.crt" TEXT)
|
||||
target_add_binary_data(${COMPONENT_NAME} "certs/private.pem.key" TEXT)
|
||||
endif()
|
@ -2,7 +2,5 @@
|
||||
# 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)
|
||||
|
4
examples/protocols/coap_client/main/CMakeLists.txt
Normal file
4
examples/protocols/coap_client/main/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "coap_client_example_main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
@ -2,7 +2,5 @@
|
||||
# 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)
|
||||
|
4
examples/protocols/coap_server/main/CMakeLists.txt
Normal file
4
examples/protocols/coap_server/main/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "coap_server_example_main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
@ -1,2 +1,3 @@
|
||||
CONFIG_BROKER_URI="mqtts://${EXAMPLE_MQTT_BROKER_SSL}"
|
||||
CONFIG_BROKER_CERTIFICATE_OVERRIDE="${EXAMPLE_MQTT_BROKER_CERTIFICATE}"
|
||||
CONFIG_MQTT_USING_ESP=y
|
||||
|
1
examples/protocols/esp-mqtt/ssl/sdkconfig.defaults
Normal file
1
examples/protocols/esp-mqtt/ssl/sdkconfig.defaults
Normal file
@ -0,0 +1 @@
|
||||
CONFIG_MQTT_USING_ESP=y
|
@ -0,0 +1 @@
|
||||
CONFIG_MQTT_USING_ESP=y
|
@ -1,2 +1,3 @@
|
||||
CONFIG_LOG_DEFAULT_LEVEL_DEBUG=y
|
||||
CONFIG_BROKER_URL="FROM_STDIN"
|
||||
CONFIG_MQTT_USING_ESP=y
|
||||
|
1
examples/protocols/esp-mqtt/tcp/sdkconfig.defaults
Normal file
1
examples/protocols/esp-mqtt/tcp/sdkconfig.defaults
Normal file
@ -0,0 +1 @@
|
||||
CONFIG_MQTT_USING_ESP=y
|
@ -1 +1,2 @@
|
||||
CONFIG_BROKER_URI="ws://${EXAMPLE_MQTT_BROKER_WS}/ws"
|
||||
CONFIG_MQTT_USING_ESP=y
|
||||
|
1
examples/protocols/esp-mqtt/ws/sdkconfig.defaults
Normal file
1
examples/protocols/esp-mqtt/ws/sdkconfig.defaults
Normal file
@ -0,0 +1 @@
|
||||
CONFIG_MQTT_USING_ESP=y
|
@ -1,3 +1,3 @@
|
||||
CONFIG_BROKER_URI="wss://${EXAMPLE_MQTT_BROKER_WSS}/ws"
|
||||
CONFIG_BROKER_CERTIFICATE_OVERRIDE="${EXAMPLE_MQTT_BROKER_CERTIFICATE}"
|
||||
|
||||
CONFIG_MQTT_USING_ESP=y
|
||||
|
1
examples/protocols/esp-mqtt/wss/sdkconfig.defaults
Normal file
1
examples/protocols/esp-mqtt/wss/sdkconfig.defaults
Normal file
@ -0,0 +1 @@
|
||||
CONFIG_MQTT_USING_ESP=y
|
6
examples/protocols/http_request/CMakeLists.txt
Normal file
6
examples/protocols/http_request/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(http_request)
|
3
examples/protocols/http_request/main/CMakeLists.txt
Normal file
3
examples/protocols/http_request/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "http_request_example_main.c")
|
||||
|
||||
register_component()
|
@ -22,7 +22,7 @@ struct async_resp_arg {
|
||||
esp_err_t hello_get_handler(httpd_req_t *req)
|
||||
{
|
||||
#define STR "Hello World!"
|
||||
ESP_LOGI(TAG, "Free Stack for server task: '%d'", uxTaskGetStackHighWaterMark(NULL));
|
||||
ESP_LOGI(TAG, "Free Stack for server task: '%ld'", uxTaskGetStackHighWaterMark(NULL));
|
||||
httpd_resp_send(req, STR, strlen(STR));
|
||||
return ESP_OK;
|
||||
#undef STR
|
||||
|
6
examples/protocols/https_mbedtls/CMakeLists.txt
Normal file
6
examples/protocols/https_mbedtls/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(https_mbedtls)
|
8
examples/protocols/https_mbedtls/main/CMakeLists.txt
Normal file
8
examples/protocols/https_mbedtls/main/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
set(COMPONENT_SRCS "https_mbedtls_example_main.c")
|
||||
|
||||
# Embed the server root certificate into the final binary
|
||||
#
|
||||
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
|
||||
set(COMPONENT_EMBED_TXTFILES server_root_cert.pem)
|
||||
|
||||
register_component()
|
6
examples/protocols/https_wolfssl/CMakeLists.txt
Normal file
6
examples/protocols/https_wolfssl/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(https_wolfssl)
|
10
examples/protocols/https_wolfssl/main/CMakeLists.txt
Normal file
10
examples/protocols/https_wolfssl/main/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
set(COMPONENT_SRCS "https_wolfssl_example_main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
|
||||
# Embed the server root certificate into the final binary
|
||||
#
|
||||
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
|
||||
set(COMPONENT_EMBED_TXTFILES server_root_cert.pem)
|
||||
|
||||
register_component()
|
6
examples/protocols/ibm-mqtt/CMakeLists.txt
Normal file
6
examples/protocols/ibm-mqtt/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(ibm-mqtt)
|
4
examples/protocols/ibm-mqtt/main/CMakeLists.txt
Normal file
4
examples/protocols/ibm-mqtt/main/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "MQTTEcho.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
6
examples/protocols/mdns/CMakeLists.txt
Normal file
6
examples/protocols/mdns/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(mdns)
|
3
examples/protocols/mdns/main/CMakeLists.txt
Normal file
3
examples/protocols/mdns/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "mdns_example_main.c")
|
||||
|
||||
register_component()
|
6
examples/protocols/openssl_client/CMakeLists.txt
Normal file
6
examples/protocols/openssl_client/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(openssl_client)
|
8
examples/protocols/openssl_client/main/CMakeLists.txt
Normal file
8
examples/protocols/openssl_client/main/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
set(COMPONENT_SRCS "openssl_client_example_main.c")
|
||||
|
||||
# Embed the server root certificate into the final binary
|
||||
#
|
||||
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
|
||||
set(COMPONENT_EMBED_TXTFILES "client.pem" "client.key" "ca.pem")
|
||||
|
||||
register_component()
|
@ -3,7 +3,7 @@
|
||||
# project subdirectory.
|
||||
#
|
||||
|
||||
PROJECT_NAME := openssl
|
||||
PROJECT_NAME := openssl_demo
|
||||
|
||||
include $(IDF_PATH)/make/project.mk
|
||||
|
||||
|
6
examples/protocols/openssl_server/CMakeLists.txt
Normal file
6
examples/protocols/openssl_server/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(openssl_server)
|
8
examples/protocols/openssl_server/main/CMakeLists.txt
Normal file
8
examples/protocols/openssl_server/main/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
set(COMPONENT_SRCS "openssl_server_example_main.c")
|
||||
|
||||
# Embed the server root certificate into the final binary
|
||||
#
|
||||
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
|
||||
set(COMPONENT_EMBED_TXTFILES "server.pem" "server.key" "ca.pem")
|
||||
|
||||
register_component()
|
6
examples/protocols/sntp/CMakeLists.txt
Normal file
6
examples/protocols/sntp/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(sntp)
|
3
examples/protocols/sntp/main/CMakeLists.txt
Normal file
3
examples/protocols/sntp/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "sntp_example_main.c")
|
||||
|
||||
register_component()
|
6
examples/system/ota/native_ota/CMakeLists.txt
Normal file
6
examples/system/ota/native_ota/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(native_ota)
|
4
examples/system/ota/native_ota/main/CMakeLists.txt
Normal file
4
examples/system/ota/native_ota/main/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "ota_example_main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
6
examples/wifi/espnow/CMakeLists.txt
Normal file
6
examples/wifi/espnow/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(espnow)
|
4
examples/wifi/espnow/main/CMakeLists.txt
Normal file
4
examples/wifi/espnow/main/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
set(COMPONENT_ADD_INCLUDEDIRS .)
|
||||
set(COMPONENT_SRCS "espnow_example_main.c")
|
||||
|
||||
register_component()
|
6
examples/wifi/simple_wifi/CMakeLists.txt
Normal file
6
examples/wifi/simple_wifi/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(simple_wifi)
|
3
examples/wifi/simple_wifi/main/CMakeLists.txt
Normal file
3
examples/wifi/simple_wifi/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "simple_wifi.c")
|
||||
|
||||
register_component()
|
6
examples/wifi/smart_config/CMakeLists.txt
Normal file
6
examples/wifi/smart_config/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(smart_config)
|
3
examples/wifi/smart_config/main/CMakeLists.txt
Normal file
3
examples/wifi/smart_config/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "smartconfig_main.c")
|
||||
|
||||
register_component()
|
6
examples/wifi/sniffer/CMakeLists.txt
Normal file
6
examples/wifi/sniffer/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(sniffer)
|
3
examples/wifi/sniffer/main/CMakeLists.txt
Normal file
3
examples/wifi/sniffer/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "sniffer_main.c")
|
||||
|
||||
register_component()
|
6
examples/wifi/wps/CMakeLists.txt
Normal file
6
examples/wifi/wps/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# 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)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(wps)
|
3
examples/wifi/wps/main/CMakeLists.txt
Normal file
3
examples/wifi/wps/main/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
set(COMPONENT_SRCS "wps.c")
|
||||
|
||||
register_component()
|
Reference in New Issue
Block a user