MrBuddyCasino / ESP32_Alexa

An Alexa Smart Speaker project for the ESP32.
Mozilla Public License 2.0
265 stars 72 forks source link

CMakeLists.txt problem #44

Open amir-mhdi opened 3 years ago

amir-mhdi commented 3 years ago

Hi . I use esp-idf v4.2 in Eclipse in windows 10. I wana run this project. buf have a problem ...

How can I add component directory and sub directories for include .c & .h files to project? This is the cmakelist.txt in root directory :

cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(alexa)

and this is in main directory : idf_component_register(SRCS "app_main.c" INCLUDE_DIRS ".")

Can u tell me what I write in cmakelist.txt completely and change whose that?