Here are what my top level and project level CMakeLists.txt files look like:Component directory C:/Users/[Username]/ESP/esp-mdf/components/third_party does not contain a CMakeLists.txt file. No component will be added
ccache will be used for faster recompilation
Top level CMakeLists.txt:
Code: Select all
cmake_minimum_required(VERSION 3.5)
list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/components" "$ENV{MDF_PATH}/components")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
include($ENV{MDF_PATH}/project.cmake)
project(ble_and_wifimesh)
Code: Select all
idf_component_register(SRCS "main.c" "http.c" "spiffs.c" "wifi_mesh.c" "wifi_provision.c"
INCLUDE_DIRS "include"
PRIV_REQUIRES esp_http_client mwifi nvs_flash spiffs spi_flash tcp_transport wifi_provisioning)
include/main.h
CMakeLists.txt
component.mk
http.c
kconfig.projbuild
main.c
spiffs.c
wifi_mesh.c
wifi_provision.c
wifi.c
I wouldn't have expected this to be an issue since not every directory in esp-mdf/components needs to have a cmakelists.txt file, right? So what is it that I'm doing incorrectly with my CMakeLists.txt files? I'm at a loss.