From 800bffb8b007dfafd09c667e8fb019fb38b7a1d1 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 27 Feb 2018 17:44:31 +1100 Subject: [PATCH] cmake: Add CMakeLists.txt files for all examples Generating using convert_to_cmake.py, with some minor cleanup --- components/app_trace/CMakeLists.txt | 19 +++++++++++- components/bt/CMakeLists.txt | 30 +++++-------------- examples/bluetooth/a2dp_sink/CMakeLists.txt | 12 ++++++++ examples/bluetooth/a2dp_source/CMakeLists.txt | 11 +++++++ examples/bluetooth/ble_adv/CMakeLists.txt | 10 +++++++ .../bluetooth/ble_eddystone/CMakeLists.txt | 8 +++++ examples/bluetooth/ble_ibeacon/CMakeLists.txt | 8 +++++ .../bluetooth/ble_spp_client/CMakeLists.txt | 8 +++++ .../bluetooth/ble_spp_server/CMakeLists.txt | 8 +++++ examples/bluetooth/blufi/CMakeLists.txt | 8 +++++ .../bluetooth/bt_discovery/CMakeLists.txt | 8 +++++ .../bluetooth/bt_spp_acceptor/CMakeLists.txt | 8 +++++ .../bluetooth/bt_spp_initiator/CMakeLists.txt | 8 +++++ .../controller_hci_uart/CMakeLists.txt | 8 +++++ examples/bluetooth/gatt_client/CMakeLists.txt | 8 +++++ .../gatt_security_client/CMakeLists.txt | 8 +++++ .../gatt_security_server/CMakeLists.txt | 8 +++++ examples/bluetooth/gatt_server/CMakeLists.txt | 8 +++++ .../gatt_server_service_table/CMakeLists.txt | 8 +++++ .../gattc_multi_connect/CMakeLists.txt | 8 +++++ examples/ethernet/ethernet/CMakeLists.txt | 8 +++++ .../get-started/hello_world/CMakeLists.txt | 2 +- examples/peripherals/adc/CMakeLists.txt | 8 +++++ examples/peripherals/adc2/CMakeLists.txt | 8 +++++ examples/peripherals/gpio/CMakeLists.txt | 8 +++++ examples/peripherals/i2c/CMakeLists.txt | 8 +++++ examples/peripherals/i2s/CMakeLists.txt | 8 +++++ .../peripherals/i2s_adc_dac/CMakeLists.txt | 8 +++++ examples/peripherals/ledc/CMakeLists.txt | 8 +++++ examples/peripherals/pcnt/CMakeLists.txt | 8 +++++ .../peripherals/rmt_nec_tx_rx/CMakeLists.txt | 8 +++++ examples/peripherals/rmt_tx/CMakeLists.txt | 8 +++++ .../peripherals/sigmadelta/CMakeLists.txt | 8 +++++ .../peripherals/spi_master/CMakeLists.txt | 8 +++++ .../peripherals/timer_group/CMakeLists.txt | 8 +++++ .../touch_pad_interrupt/CMakeLists.txt | 8 +++++ .../peripherals/touch_pad_read/CMakeLists.txt | 8 +++++ .../uart_async_rxtxtasks/CMakeLists.txt | 8 +++++ examples/peripherals/uart_echo/CMakeLists.txt | 8 +++++ .../peripherals/uart_events/CMakeLists.txt | 8 +++++ .../aws_iot/subscribe_publish/CMakeLists.txt | 4 +-- .../aws_iot/thing_shadow/CMakeLists.txt | 13 ++++++++ examples/protocols/coap_client/CMakeLists.txt | 8 +++++ examples/protocols/coap_server/CMakeLists.txt | 8 +++++ .../protocols/http2_request/CMakeLists.txt | 8 +++++ .../components/sh2lib/CMakeLists.txt | 5 ++++ .../protocols/http_request/CMakeLists.txt | 8 +++++ .../protocols/https_request/CMakeLists.txt | 14 +++++++++ examples/protocols/mdns/CMakeLists.txt | 8 +++++ .../protocols/openssl_client/CMakeLists.txt | 8 +++++ .../protocols/openssl_server/CMakeLists.txt | 12 ++++++++ .../protocols/pppos_client/CMakeLists.txt | 8 +++++ examples/protocols/sntp/CMakeLists.txt | 8 +++++ .../protocols/udp_multicast/CMakeLists.txt | 8 +++++ examples/storage/nvs_rw_blob/CMakeLists.txt | 8 +++++ examples/storage/nvs_rw_value/CMakeLists.txt | 8 +++++ examples/storage/sd_card/CMakeLists.txt | 8 +++++ examples/storage/spiffs/CMakeLists.txt | 8 +++++ .../storage/wear_levelling/CMakeLists.txt | 8 +++++ .../system/app_trace_to_host/CMakeLists.txt | 8 +++++ .../system/base_mac_address/CMakeLists.txt | 8 +++++ examples/system/console/CMakeLists.txt | 8 +++++ examples/system/deep_sleep/CMakeLists.txt | 8 +++++ examples/system/gcov/CMakeLists.txt | 8 +++++ examples/system/ota/CMakeLists.txt | 8 +++++ examples/system/task_watchdog/CMakeLists.txt | 8 +++++ examples/wifi/espnow/CMakeLists.txt | 8 +++++ examples/wifi/iperf/CMakeLists.txt | 8 +++++ examples/wifi/iperf/components/CMakeLists.txt | 5 ++++ examples/wifi/power_save/CMakeLists.txt | 8 +++++ examples/wifi/scan/CMakeLists.txt | 8 +++++ examples/wifi/smart_config/CMakeLists.txt | 8 +++++ examples/wifi/wpa2_enterprise/CMakeLists.txt | 17 +++++++++++ examples/wifi/wps/CMakeLists.txt | 8 +++++ 74 files changed, 615 insertions(+), 27 deletions(-) create mode 100755 examples/bluetooth/a2dp_sink/CMakeLists.txt create mode 100755 examples/bluetooth/a2dp_source/CMakeLists.txt create mode 100644 examples/bluetooth/ble_adv/CMakeLists.txt create mode 100644 examples/bluetooth/ble_eddystone/CMakeLists.txt create mode 100644 examples/bluetooth/ble_ibeacon/CMakeLists.txt create mode 100644 examples/bluetooth/ble_spp_client/CMakeLists.txt create mode 100644 examples/bluetooth/ble_spp_server/CMakeLists.txt create mode 100644 examples/bluetooth/blufi/CMakeLists.txt create mode 100644 examples/bluetooth/bt_discovery/CMakeLists.txt create mode 100644 examples/bluetooth/bt_spp_acceptor/CMakeLists.txt create mode 100644 examples/bluetooth/bt_spp_initiator/CMakeLists.txt create mode 100644 examples/bluetooth/controller_hci_uart/CMakeLists.txt create mode 100644 examples/bluetooth/gatt_client/CMakeLists.txt create mode 100644 examples/bluetooth/gatt_security_client/CMakeLists.txt create mode 100644 examples/bluetooth/gatt_security_server/CMakeLists.txt create mode 100644 examples/bluetooth/gatt_server/CMakeLists.txt create mode 100644 examples/bluetooth/gatt_server_service_table/CMakeLists.txt create mode 100644 examples/bluetooth/gattc_multi_connect/CMakeLists.txt create mode 100644 examples/ethernet/ethernet/CMakeLists.txt create mode 100644 examples/peripherals/adc/CMakeLists.txt create mode 100644 examples/peripherals/adc2/CMakeLists.txt create mode 100644 examples/peripherals/gpio/CMakeLists.txt create mode 100644 examples/peripherals/i2c/CMakeLists.txt create mode 100644 examples/peripherals/i2s/CMakeLists.txt create mode 100644 examples/peripherals/i2s_adc_dac/CMakeLists.txt create mode 100644 examples/peripherals/ledc/CMakeLists.txt create mode 100644 examples/peripherals/pcnt/CMakeLists.txt create mode 100644 examples/peripherals/rmt_nec_tx_rx/CMakeLists.txt create mode 100644 examples/peripherals/rmt_tx/CMakeLists.txt create mode 100644 examples/peripherals/sigmadelta/CMakeLists.txt create mode 100644 examples/peripherals/spi_master/CMakeLists.txt create mode 100644 examples/peripherals/timer_group/CMakeLists.txt create mode 100644 examples/peripherals/touch_pad_interrupt/CMakeLists.txt create mode 100644 examples/peripherals/touch_pad_read/CMakeLists.txt create mode 100644 examples/peripherals/uart_async_rxtxtasks/CMakeLists.txt create mode 100644 examples/peripherals/uart_echo/CMakeLists.txt create mode 100644 examples/peripherals/uart_events/CMakeLists.txt create mode 100644 examples/protocols/aws_iot/thing_shadow/CMakeLists.txt create mode 100644 examples/protocols/coap_client/CMakeLists.txt create mode 100644 examples/protocols/coap_server/CMakeLists.txt create mode 100644 examples/protocols/http2_request/CMakeLists.txt create mode 100644 examples/protocols/http2_request/components/sh2lib/CMakeLists.txt create mode 100644 examples/protocols/http_request/CMakeLists.txt create mode 100644 examples/protocols/https_request/CMakeLists.txt create mode 100644 examples/protocols/mdns/CMakeLists.txt create mode 100644 examples/protocols/openssl_client/CMakeLists.txt create mode 100644 examples/protocols/openssl_server/CMakeLists.txt create mode 100644 examples/protocols/pppos_client/CMakeLists.txt create mode 100644 examples/protocols/sntp/CMakeLists.txt create mode 100644 examples/protocols/udp_multicast/CMakeLists.txt create mode 100644 examples/storage/nvs_rw_blob/CMakeLists.txt create mode 100644 examples/storage/nvs_rw_value/CMakeLists.txt create mode 100644 examples/storage/sd_card/CMakeLists.txt create mode 100644 examples/storage/spiffs/CMakeLists.txt create mode 100644 examples/storage/wear_levelling/CMakeLists.txt create mode 100644 examples/system/app_trace_to_host/CMakeLists.txt create mode 100644 examples/system/base_mac_address/CMakeLists.txt create mode 100644 examples/system/console/CMakeLists.txt create mode 100644 examples/system/deep_sleep/CMakeLists.txt create mode 100644 examples/system/gcov/CMakeLists.txt create mode 100644 examples/system/ota/CMakeLists.txt create mode 100644 examples/system/task_watchdog/CMakeLists.txt create mode 100644 examples/wifi/espnow/CMakeLists.txt create mode 100644 examples/wifi/iperf/CMakeLists.txt create mode 100644 examples/wifi/iperf/components/CMakeLists.txt create mode 100644 examples/wifi/power_save/CMakeLists.txt create mode 100644 examples/wifi/scan/CMakeLists.txt create mode 100644 examples/wifi/smart_config/CMakeLists.txt create mode 100644 examples/wifi/wpa2_enterprise/CMakeLists.txt create mode 100644 examples/wifi/wps/CMakeLists.txt diff --git a/components/app_trace/CMakeLists.txt b/components/app_trace/CMakeLists.txt index ba2fa9c7e..ebdfd941c 100644 --- a/components/app_trace/CMakeLists.txt +++ b/components/app_trace/CMakeLists.txt @@ -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") diff --git a/components/bt/CMakeLists.txt b/components/bt/CMakeLists.txt index f50c58ab0..f802be0f1 100644 --- a/components/bt/CMakeLists.txt +++ b/components/bt/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/a2dp_sink/CMakeLists.txt b/examples/bluetooth/a2dp_sink/CMakeLists.txt new file mode 100755 index 000000000..4d14857a0 --- /dev/null +++ b/examples/bluetooth/a2dp_sink/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/a2dp_source/CMakeLists.txt b/examples/bluetooth/a2dp_source/CMakeLists.txt new file mode 100755 index 000000000..1b4c44799 --- /dev/null +++ b/examples/bluetooth/a2dp_source/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/ble_adv/CMakeLists.txt b/examples/bluetooth/ble_adv/CMakeLists.txt new file mode 100644 index 000000000..04715a858 --- /dev/null +++ b/examples/bluetooth/ble_adv/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/ble_eddystone/CMakeLists.txt b/examples/bluetooth/ble_eddystone/CMakeLists.txt new file mode 100644 index 000000000..05d77c7c6 --- /dev/null +++ b/examples/bluetooth/ble_eddystone/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/ble_ibeacon/CMakeLists.txt b/examples/bluetooth/ble_ibeacon/CMakeLists.txt new file mode 100644 index 000000000..5eb1d7363 --- /dev/null +++ b/examples/bluetooth/ble_ibeacon/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/ble_spp_client/CMakeLists.txt b/examples/bluetooth/ble_spp_client/CMakeLists.txt new file mode 100644 index 000000000..93abbbfb3 --- /dev/null +++ b/examples/bluetooth/ble_spp_client/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/ble_spp_server/CMakeLists.txt b/examples/bluetooth/ble_spp_server/CMakeLists.txt new file mode 100644 index 000000000..c0508f801 --- /dev/null +++ b/examples/bluetooth/ble_spp_server/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/blufi/CMakeLists.txt b/examples/bluetooth/blufi/CMakeLists.txt new file mode 100644 index 000000000..e016e161a --- /dev/null +++ b/examples/bluetooth/blufi/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/bt_discovery/CMakeLists.txt b/examples/bluetooth/bt_discovery/CMakeLists.txt new file mode 100644 index 000000000..b79d221bd --- /dev/null +++ b/examples/bluetooth/bt_discovery/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/bt_spp_acceptor/CMakeLists.txt b/examples/bluetooth/bt_spp_acceptor/CMakeLists.txt new file mode 100644 index 000000000..5ed97b387 --- /dev/null +++ b/examples/bluetooth/bt_spp_acceptor/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/bt_spp_initiator/CMakeLists.txt b/examples/bluetooth/bt_spp_initiator/CMakeLists.txt new file mode 100644 index 000000000..fc8eb551b --- /dev/null +++ b/examples/bluetooth/bt_spp_initiator/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/controller_hci_uart/CMakeLists.txt b/examples/bluetooth/controller_hci_uart/CMakeLists.txt new file mode 100644 index 000000000..0c7fcbdd9 --- /dev/null +++ b/examples/bluetooth/controller_hci_uart/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/gatt_client/CMakeLists.txt b/examples/bluetooth/gatt_client/CMakeLists.txt new file mode 100644 index 000000000..5e41444ab --- /dev/null +++ b/examples/bluetooth/gatt_client/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/gatt_security_client/CMakeLists.txt b/examples/bluetooth/gatt_security_client/CMakeLists.txt new file mode 100644 index 000000000..787f0b763 --- /dev/null +++ b/examples/bluetooth/gatt_security_client/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/gatt_security_server/CMakeLists.txt b/examples/bluetooth/gatt_security_server/CMakeLists.txt new file mode 100644 index 000000000..d232d02b3 --- /dev/null +++ b/examples/bluetooth/gatt_security_server/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/gatt_server/CMakeLists.txt b/examples/bluetooth/gatt_server/CMakeLists.txt new file mode 100644 index 000000000..74a0560be --- /dev/null +++ b/examples/bluetooth/gatt_server/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/gatt_server_service_table/CMakeLists.txt b/examples/bluetooth/gatt_server_service_table/CMakeLists.txt new file mode 100644 index 000000000..2f5653065 --- /dev/null +++ b/examples/bluetooth/gatt_server_service_table/CMakeLists.txt @@ -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) diff --git a/examples/bluetooth/gattc_multi_connect/CMakeLists.txt b/examples/bluetooth/gattc_multi_connect/CMakeLists.txt new file mode 100644 index 000000000..73566a731 --- /dev/null +++ b/examples/bluetooth/gattc_multi_connect/CMakeLists.txt @@ -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) diff --git a/examples/ethernet/ethernet/CMakeLists.txt b/examples/ethernet/ethernet/CMakeLists.txt new file mode 100644 index 000000000..0b4d20f08 --- /dev/null +++ b/examples/ethernet/ethernet/CMakeLists.txt @@ -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) diff --git a/examples/get-started/hello_world/CMakeLists.txt b/examples/get-started/hello_world/CMakeLists.txt index cd8c56e58..1d4853e77 100644 --- a/examples/get-started/hello_world/CMakeLists.txt +++ b/examples/get-started/hello_world/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/adc/CMakeLists.txt b/examples/peripherals/adc/CMakeLists.txt new file mode 100644 index 000000000..2232b277c --- /dev/null +++ b/examples/peripherals/adc/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/adc2/CMakeLists.txt b/examples/peripherals/adc2/CMakeLists.txt new file mode 100644 index 000000000..650e3100a --- /dev/null +++ b/examples/peripherals/adc2/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/gpio/CMakeLists.txt b/examples/peripherals/gpio/CMakeLists.txt new file mode 100644 index 000000000..82873edc4 --- /dev/null +++ b/examples/peripherals/gpio/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/i2c/CMakeLists.txt b/examples/peripherals/i2c/CMakeLists.txt new file mode 100644 index 000000000..048d75fb3 --- /dev/null +++ b/examples/peripherals/i2c/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/i2s/CMakeLists.txt b/examples/peripherals/i2s/CMakeLists.txt new file mode 100644 index 000000000..6520061d4 --- /dev/null +++ b/examples/peripherals/i2s/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/i2s_adc_dac/CMakeLists.txt b/examples/peripherals/i2s_adc_dac/CMakeLists.txt new file mode 100644 index 000000000..8e7fe3c07 --- /dev/null +++ b/examples/peripherals/i2s_adc_dac/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/ledc/CMakeLists.txt b/examples/peripherals/ledc/CMakeLists.txt new file mode 100644 index 000000000..c0c15b6f9 --- /dev/null +++ b/examples/peripherals/ledc/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/pcnt/CMakeLists.txt b/examples/peripherals/pcnt/CMakeLists.txt new file mode 100644 index 000000000..2a7c8f40e --- /dev/null +++ b/examples/peripherals/pcnt/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/rmt_nec_tx_rx/CMakeLists.txt b/examples/peripherals/rmt_nec_tx_rx/CMakeLists.txt new file mode 100644 index 000000000..468032294 --- /dev/null +++ b/examples/peripherals/rmt_nec_tx_rx/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/rmt_tx/CMakeLists.txt b/examples/peripherals/rmt_tx/CMakeLists.txt new file mode 100644 index 000000000..7aa64fedb --- /dev/null +++ b/examples/peripherals/rmt_tx/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/sigmadelta/CMakeLists.txt b/examples/peripherals/sigmadelta/CMakeLists.txt new file mode 100644 index 000000000..3f4df2cfc --- /dev/null +++ b/examples/peripherals/sigmadelta/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/spi_master/CMakeLists.txt b/examples/peripherals/spi_master/CMakeLists.txt new file mode 100644 index 000000000..e7640d84f --- /dev/null +++ b/examples/peripherals/spi_master/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/timer_group/CMakeLists.txt b/examples/peripherals/timer_group/CMakeLists.txt new file mode 100644 index 000000000..7f851e164 --- /dev/null +++ b/examples/peripherals/timer_group/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/touch_pad_interrupt/CMakeLists.txt b/examples/peripherals/touch_pad_interrupt/CMakeLists.txt new file mode 100644 index 000000000..efdecaba1 --- /dev/null +++ b/examples/peripherals/touch_pad_interrupt/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/touch_pad_read/CMakeLists.txt b/examples/peripherals/touch_pad_read/CMakeLists.txt new file mode 100644 index 000000000..f246a1ad5 --- /dev/null +++ b/examples/peripherals/touch_pad_read/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/uart_async_rxtxtasks/CMakeLists.txt b/examples/peripherals/uart_async_rxtxtasks/CMakeLists.txt new file mode 100644 index 000000000..4ab23a834 --- /dev/null +++ b/examples/peripherals/uart_async_rxtxtasks/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/uart_echo/CMakeLists.txt b/examples/peripherals/uart_echo/CMakeLists.txt new file mode 100644 index 000000000..b7ab8a582 --- /dev/null +++ b/examples/peripherals/uart_echo/CMakeLists.txt @@ -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) diff --git a/examples/peripherals/uart_events/CMakeLists.txt b/examples/peripherals/uart_events/CMakeLists.txt new file mode 100644 index 000000000..464886f25 --- /dev/null +++ b/examples/peripherals/uart_events/CMakeLists.txt @@ -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) diff --git a/examples/protocols/aws_iot/subscribe_publish/CMakeLists.txt b/examples/protocols/aws_iot/subscribe_publish/CMakeLists.txt index 297e7b73a..c7cfd88f4 100644 --- a/examples/protocols/aws_iot/subscribe_publish/CMakeLists.txt +++ b/examples/protocols/aws_iot/subscribe_publish/CMakeLists.txt @@ -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) diff --git a/examples/protocols/aws_iot/thing_shadow/CMakeLists.txt b/examples/protocols/aws_iot/thing_shadow/CMakeLists.txt new file mode 100644 index 000000000..37d5d9a9c --- /dev/null +++ b/examples/protocols/aws_iot/thing_shadow/CMakeLists.txt @@ -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) diff --git a/examples/protocols/coap_client/CMakeLists.txt b/examples/protocols/coap_client/CMakeLists.txt new file mode 100644 index 000000000..43378b8b6 --- /dev/null +++ b/examples/protocols/coap_client/CMakeLists.txt @@ -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) diff --git a/examples/protocols/coap_server/CMakeLists.txt b/examples/protocols/coap_server/CMakeLists.txt new file mode 100644 index 000000000..8495b8578 --- /dev/null +++ b/examples/protocols/coap_server/CMakeLists.txt @@ -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) diff --git a/examples/protocols/http2_request/CMakeLists.txt b/examples/protocols/http2_request/CMakeLists.txt new file mode 100644 index 000000000..b49128d5e --- /dev/null +++ b/examples/protocols/http2_request/CMakeLists.txt @@ -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) diff --git a/examples/protocols/http2_request/components/sh2lib/CMakeLists.txt b/examples/protocols/http2_request/components/sh2lib/CMakeLists.txt new file mode 100644 index 000000000..74bb26787 --- /dev/null +++ b/examples/protocols/http2_request/components/sh2lib/CMakeLists.txt @@ -0,0 +1,5 @@ +set(COMPONENT_ADD_INCLUDEDIRS .) + +set(COMPONENT_SRCDIRS .) + +register_component() diff --git a/examples/protocols/http_request/CMakeLists.txt b/examples/protocols/http_request/CMakeLists.txt new file mode 100644 index 000000000..a8f1470b9 --- /dev/null +++ b/examples/protocols/http_request/CMakeLists.txt @@ -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) diff --git a/examples/protocols/https_request/CMakeLists.txt b/examples/protocols/https_request/CMakeLists.txt new file mode 100644 index 000000000..22118c45c --- /dev/null +++ b/examples/protocols/https_request/CMakeLists.txt @@ -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) diff --git a/examples/protocols/mdns/CMakeLists.txt b/examples/protocols/mdns/CMakeLists.txt new file mode 100644 index 000000000..57c5e9a2e --- /dev/null +++ b/examples/protocols/mdns/CMakeLists.txt @@ -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) diff --git a/examples/protocols/openssl_client/CMakeLists.txt b/examples/protocols/openssl_client/CMakeLists.txt new file mode 100644 index 000000000..0fc241ddf --- /dev/null +++ b/examples/protocols/openssl_client/CMakeLists.txt @@ -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) diff --git a/examples/protocols/openssl_server/CMakeLists.txt b/examples/protocols/openssl_server/CMakeLists.txt new file mode 100644 index 000000000..dba98fc68 --- /dev/null +++ b/examples/protocols/openssl_server/CMakeLists.txt @@ -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) diff --git a/examples/protocols/pppos_client/CMakeLists.txt b/examples/protocols/pppos_client/CMakeLists.txt new file mode 100644 index 000000000..c9378d72f --- /dev/null +++ b/examples/protocols/pppos_client/CMakeLists.txt @@ -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) diff --git a/examples/protocols/sntp/CMakeLists.txt b/examples/protocols/sntp/CMakeLists.txt new file mode 100644 index 000000000..d083f8fe1 --- /dev/null +++ b/examples/protocols/sntp/CMakeLists.txt @@ -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) diff --git a/examples/protocols/udp_multicast/CMakeLists.txt b/examples/protocols/udp_multicast/CMakeLists.txt new file mode 100644 index 000000000..998524292 --- /dev/null +++ b/examples/protocols/udp_multicast/CMakeLists.txt @@ -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) diff --git a/examples/storage/nvs_rw_blob/CMakeLists.txt b/examples/storage/nvs_rw_blob/CMakeLists.txt new file mode 100644 index 000000000..1dd6023f3 --- /dev/null +++ b/examples/storage/nvs_rw_blob/CMakeLists.txt @@ -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) diff --git a/examples/storage/nvs_rw_value/CMakeLists.txt b/examples/storage/nvs_rw_value/CMakeLists.txt new file mode 100644 index 000000000..971a306ef --- /dev/null +++ b/examples/storage/nvs_rw_value/CMakeLists.txt @@ -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) diff --git a/examples/storage/sd_card/CMakeLists.txt b/examples/storage/sd_card/CMakeLists.txt new file mode 100644 index 000000000..ab4bcf2fa --- /dev/null +++ b/examples/storage/sd_card/CMakeLists.txt @@ -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) diff --git a/examples/storage/spiffs/CMakeLists.txt b/examples/storage/spiffs/CMakeLists.txt new file mode 100644 index 000000000..0356e25bf --- /dev/null +++ b/examples/storage/spiffs/CMakeLists.txt @@ -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) diff --git a/examples/storage/wear_levelling/CMakeLists.txt b/examples/storage/wear_levelling/CMakeLists.txt new file mode 100644 index 000000000..bd35e0843 --- /dev/null +++ b/examples/storage/wear_levelling/CMakeLists.txt @@ -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) diff --git a/examples/system/app_trace_to_host/CMakeLists.txt b/examples/system/app_trace_to_host/CMakeLists.txt new file mode 100644 index 000000000..f26a0fdb6 --- /dev/null +++ b/examples/system/app_trace_to_host/CMakeLists.txt @@ -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) diff --git a/examples/system/base_mac_address/CMakeLists.txt b/examples/system/base_mac_address/CMakeLists.txt new file mode 100644 index 000000000..984dbb978 --- /dev/null +++ b/examples/system/base_mac_address/CMakeLists.txt @@ -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) diff --git a/examples/system/console/CMakeLists.txt b/examples/system/console/CMakeLists.txt new file mode 100644 index 000000000..416fc704a --- /dev/null +++ b/examples/system/console/CMakeLists.txt @@ -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) diff --git a/examples/system/deep_sleep/CMakeLists.txt b/examples/system/deep_sleep/CMakeLists.txt new file mode 100644 index 000000000..cf3d195aa --- /dev/null +++ b/examples/system/deep_sleep/CMakeLists.txt @@ -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) diff --git a/examples/system/gcov/CMakeLists.txt b/examples/system/gcov/CMakeLists.txt new file mode 100644 index 000000000..b1cb9fd77 --- /dev/null +++ b/examples/system/gcov/CMakeLists.txt @@ -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) diff --git a/examples/system/ota/CMakeLists.txt b/examples/system/ota/CMakeLists.txt new file mode 100644 index 000000000..0b66883d1 --- /dev/null +++ b/examples/system/ota/CMakeLists.txt @@ -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) diff --git a/examples/system/task_watchdog/CMakeLists.txt b/examples/system/task_watchdog/CMakeLists.txt new file mode 100644 index 000000000..e0f24b03f --- /dev/null +++ b/examples/system/task_watchdog/CMakeLists.txt @@ -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) diff --git a/examples/wifi/espnow/CMakeLists.txt b/examples/wifi/espnow/CMakeLists.txt new file mode 100644 index 000000000..446cf5ccf --- /dev/null +++ b/examples/wifi/espnow/CMakeLists.txt @@ -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) diff --git a/examples/wifi/iperf/CMakeLists.txt b/examples/wifi/iperf/CMakeLists.txt new file mode 100644 index 000000000..7463023e9 --- /dev/null +++ b/examples/wifi/iperf/CMakeLists.txt @@ -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) diff --git a/examples/wifi/iperf/components/CMakeLists.txt b/examples/wifi/iperf/components/CMakeLists.txt new file mode 100644 index 000000000..74bb26787 --- /dev/null +++ b/examples/wifi/iperf/components/CMakeLists.txt @@ -0,0 +1,5 @@ +set(COMPONENT_ADD_INCLUDEDIRS .) + +set(COMPONENT_SRCDIRS .) + +register_component() diff --git a/examples/wifi/power_save/CMakeLists.txt b/examples/wifi/power_save/CMakeLists.txt new file mode 100644 index 000000000..65cc2011d --- /dev/null +++ b/examples/wifi/power_save/CMakeLists.txt @@ -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) diff --git a/examples/wifi/scan/CMakeLists.txt b/examples/wifi/scan/CMakeLists.txt new file mode 100644 index 000000000..9de12341a --- /dev/null +++ b/examples/wifi/scan/CMakeLists.txt @@ -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) diff --git a/examples/wifi/smart_config/CMakeLists.txt b/examples/wifi/smart_config/CMakeLists.txt new file mode 100644 index 000000000..ae0b88ee6 --- /dev/null +++ b/examples/wifi/smart_config/CMakeLists.txt @@ -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) diff --git a/examples/wifi/wpa2_enterprise/CMakeLists.txt b/examples/wifi/wpa2_enterprise/CMakeLists.txt new file mode 100644 index 000000000..a489894e3 --- /dev/null +++ b/examples/wifi/wpa2_enterprise/CMakeLists.txt @@ -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) + diff --git a/examples/wifi/wps/CMakeLists.txt b/examples/wifi/wps/CMakeLists.txt new file mode 100644 index 000000000..fd23de9aa --- /dev/null +++ b/examples/wifi/wps/CMakeLists.txt @@ -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)