]> granicus.if.org Git - esp-idf/commitdiff
cmake: Add CMakeLists.txt files for all examples
authorAngus Gratton <angus@espressif.com>
Tue, 27 Feb 2018 06:44:31 +0000 (17:44 +1100)
committerAngus Gratton <gus@projectgus.com>
Sun, 29 Apr 2018 23:59:20 +0000 (09:59 +1000)
Generating using convert_to_cmake.py, with some minor cleanup

74 files changed:
components/app_trace/CMakeLists.txt
components/bt/CMakeLists.txt
examples/bluetooth/a2dp_sink/CMakeLists.txt [new file with mode: 0755]
examples/bluetooth/a2dp_source/CMakeLists.txt [new file with mode: 0755]
examples/bluetooth/ble_adv/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/ble_eddystone/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/ble_ibeacon/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/ble_spp_client/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/ble_spp_server/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/blufi/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/bt_discovery/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/bt_spp_acceptor/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/bt_spp_initiator/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/controller_hci_uart/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/gatt_client/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/gatt_security_client/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/gatt_security_server/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/gatt_server/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/gatt_server_service_table/CMakeLists.txt [new file with mode: 0644]
examples/bluetooth/gattc_multi_connect/CMakeLists.txt [new file with mode: 0644]
examples/ethernet/ethernet/CMakeLists.txt [new file with mode: 0644]
examples/get-started/hello_world/CMakeLists.txt
examples/peripherals/adc/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/adc2/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/gpio/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/i2c/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/i2s/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/i2s_adc_dac/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/ledc/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/pcnt/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/rmt_nec_tx_rx/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/rmt_tx/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/sigmadelta/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/spi_master/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/timer_group/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/touch_pad_interrupt/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/touch_pad_read/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/uart_async_rxtxtasks/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/uart_echo/CMakeLists.txt [new file with mode: 0644]
examples/peripherals/uart_events/CMakeLists.txt [new file with mode: 0644]
examples/protocols/aws_iot/subscribe_publish/CMakeLists.txt
examples/protocols/aws_iot/thing_shadow/CMakeLists.txt [new file with mode: 0644]
examples/protocols/coap_client/CMakeLists.txt [new file with mode: 0644]
examples/protocols/coap_server/CMakeLists.txt [new file with mode: 0644]
examples/protocols/http2_request/CMakeLists.txt [new file with mode: 0644]
examples/protocols/http2_request/components/sh2lib/CMakeLists.txt [new file with mode: 0644]
examples/protocols/http_request/CMakeLists.txt [new file with mode: 0644]
examples/protocols/https_request/CMakeLists.txt [new file with mode: 0644]
examples/protocols/mdns/CMakeLists.txt [new file with mode: 0644]
examples/protocols/openssl_client/CMakeLists.txt [new file with mode: 0644]
examples/protocols/openssl_server/CMakeLists.txt [new file with mode: 0644]
examples/protocols/pppos_client/CMakeLists.txt [new file with mode: 0644]
examples/protocols/sntp/CMakeLists.txt [new file with mode: 0644]
examples/protocols/udp_multicast/CMakeLists.txt [new file with mode: 0644]
examples/storage/nvs_rw_blob/CMakeLists.txt [new file with mode: 0644]
examples/storage/nvs_rw_value/CMakeLists.txt [new file with mode: 0644]
examples/storage/sd_card/CMakeLists.txt [new file with mode: 0644]
examples/storage/spiffs/CMakeLists.txt [new file with mode: 0644]
examples/storage/wear_levelling/CMakeLists.txt [new file with mode: 0644]
examples/system/app_trace_to_host/CMakeLists.txt [new file with mode: 0644]
examples/system/base_mac_address/CMakeLists.txt [new file with mode: 0644]
examples/system/console/CMakeLists.txt [new file with mode: 0644]
examples/system/deep_sleep/CMakeLists.txt [new file with mode: 0644]
examples/system/gcov/CMakeLists.txt [new file with mode: 0644]
examples/system/ota/CMakeLists.txt [new file with mode: 0644]
examples/system/task_watchdog/CMakeLists.txt [new file with mode: 0644]
examples/wifi/espnow/CMakeLists.txt [new file with mode: 0644]
examples/wifi/iperf/CMakeLists.txt [new file with mode: 0644]
examples/wifi/iperf/components/CMakeLists.txt [new file with mode: 0644]
examples/wifi/power_save/CMakeLists.txt [new file with mode: 0644]
examples/wifi/scan/CMakeLists.txt [new file with mode: 0644]
examples/wifi/smart_config/CMakeLists.txt [new file with mode: 0644]
examples/wifi/wpa2_enterprise/CMakeLists.txt [new file with mode: 0644]
examples/wifi/wps/CMakeLists.txt [new file with mode: 0644]

index ba2fa9c7e7969fc30c1581d965c214f584dd777e..ebdfd941c81528a93fe2b631395549180357436a 100644 (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")
index f50c58ab0bbbc6356666e3bb2b127d88ca79b31c..f802be0f184ac63f82bbc068b80200cfb36147fa 100644 (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)
diff --git a/examples/bluetooth/a2dp_sink/CMakeLists.txt b/examples/bluetooth/a2dp_sink/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..4d14857
--- /dev/null
@@ -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 (executable)
index 0000000..1b4c447
--- /dev/null
@@ -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 (file)
index 0000000..04715a8
--- /dev/null
@@ -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 (file)
index 0000000..05d77c7
--- /dev/null
@@ -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 (file)
index 0000000..5eb1d73
--- /dev/null
@@ -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 (file)
index 0000000..93abbbf
--- /dev/null
@@ -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 (file)
index 0000000..c0508f8
--- /dev/null
@@ -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 (file)
index 0000000..e016e16
--- /dev/null
@@ -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 (file)
index 0000000..b79d221
--- /dev/null
@@ -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 (file)
index 0000000..5ed97b3
--- /dev/null
@@ -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 (file)
index 0000000..fc8eb55
--- /dev/null
@@ -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 (file)
index 0000000..0c7fcbd
--- /dev/null
@@ -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 (file)
index 0000000..5e41444
--- /dev/null
@@ -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 (file)
index 0000000..787f0b7
--- /dev/null
@@ -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 (file)
index 0000000..d232d02
--- /dev/null
@@ -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 (file)
index 0000000..74a0560
--- /dev/null
@@ -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 (file)
index 0000000..2f56530
--- /dev/null
@@ -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 (file)
index 0000000..73566a7
--- /dev/null
@@ -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 (file)
index 0000000..0b4d20f
--- /dev/null
@@ -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)
index cd8c56e5866f1a29fcebadad6b7119add1c43de2..1d4853e774bf7df2ad8a54ddf3ea7b316c459adc 100644 (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)
 
diff --git a/examples/peripherals/adc/CMakeLists.txt b/examples/peripherals/adc/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2232b27
--- /dev/null
@@ -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 (file)
index 0000000..650e310
--- /dev/null
@@ -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 (file)
index 0000000..82873ed
--- /dev/null
@@ -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 (file)
index 0000000..048d75f
--- /dev/null
@@ -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 (file)
index 0000000..6520061
--- /dev/null
@@ -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 (file)
index 0000000..8e7fe3c
--- /dev/null
@@ -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 (file)
index 0000000..c0c15b6
--- /dev/null
@@ -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 (file)
index 0000000..2a7c8f4
--- /dev/null
@@ -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 (file)
index 0000000..4680322
--- /dev/null
@@ -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 (file)
index 0000000..7aa64fe
--- /dev/null
@@ -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 (file)
index 0000000..3f4df2c
--- /dev/null
@@ -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 (file)
index 0000000..e7640d8
--- /dev/null
@@ -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 (file)
index 0000000..7f851e1
--- /dev/null
@@ -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 (file)
index 0000000..efdecab
--- /dev/null
@@ -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 (file)
index 0000000..f246a1a
--- /dev/null
@@ -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 (file)
index 0000000..4ab23a8
--- /dev/null
@@ -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 (file)
index 0000000..b7ab8a5
--- /dev/null
@@ -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 (file)
index 0000000..464886f
--- /dev/null
@@ -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)
index 297e7b73aa1b9ae5701cbdd0766d17c15a50f5e6..c7cfd88f4d6cf5f5065dfab4a30bba131098c405 100644 (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)
diff --git a/examples/protocols/aws_iot/thing_shadow/CMakeLists.txt b/examples/protocols/aws_iot/thing_shadow/CMakeLists.txt
new file mode 100644 (file)
index 0000000..37d5d9a
--- /dev/null
@@ -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 (file)
index 0000000..43378b8
--- /dev/null
@@ -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 (file)
index 0000000..8495b85
--- /dev/null
@@ -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 (file)
index 0000000..b49128d
--- /dev/null
@@ -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 (file)
index 0000000..74bb267
--- /dev/null
@@ -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 (file)
index 0000000..a8f1470
--- /dev/null
@@ -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 (file)
index 0000000..22118c4
--- /dev/null
@@ -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 (file)
index 0000000..57c5e9a
--- /dev/null
@@ -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 (file)
index 0000000..0fc241d
--- /dev/null
@@ -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 (file)
index 0000000..dba98fc
--- /dev/null
@@ -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 (file)
index 0000000..c9378d7
--- /dev/null
@@ -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 (file)
index 0000000..d083f8f
--- /dev/null
@@ -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 (file)
index 0000000..9985242
--- /dev/null
@@ -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 (file)
index 0000000..1dd6023
--- /dev/null
@@ -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 (file)
index 0000000..971a306
--- /dev/null
@@ -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 (file)
index 0000000..ab4bcf2
--- /dev/null
@@ -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 (file)
index 0000000..0356e25
--- /dev/null
@@ -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 (file)
index 0000000..bd35e08
--- /dev/null
@@ -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 (file)
index 0000000..f26a0fd
--- /dev/null
@@ -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 (file)
index 0000000..984dbb9
--- /dev/null
@@ -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 (file)
index 0000000..416fc70
--- /dev/null
@@ -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 (file)
index 0000000..cf3d195
--- /dev/null
@@ -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 (file)
index 0000000..b1cb9fd
--- /dev/null
@@ -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 (file)
index 0000000..0b66883
--- /dev/null
@@ -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 (file)
index 0000000..e0f24b0
--- /dev/null
@@ -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 (file)
index 0000000..446cf5c
--- /dev/null
@@ -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 (file)
index 0000000..7463023
--- /dev/null
@@ -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 (file)
index 0000000..74bb267
--- /dev/null
@@ -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 (file)
index 0000000..65cc201
--- /dev/null
@@ -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 (file)
index 0000000..9de1234
--- /dev/null
@@ -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 (file)
index 0000000..ae0b88e
--- /dev/null
@@ -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 (file)
index 0000000..a489894
--- /dev/null
@@ -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 (file)
index 0000000..fd23de9
--- /dev/null
@@ -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)