adding a file to an ESP-IDF project under VScode?
Posted: Mon Apr 08, 2024 12:41 pm
How do I add a source file to an existing project under Vscode/ESP-IDF?
ESP32 Official Forum
http://forum.esp32.com/
Code: Select all
file(GLOB_RECURSE app_sources ${CMAKE_SOURCE_DIR}/main/*.*)
idf_component_register(SRCS ${app_sources})
Actually, when I'm using command line tools, I wouldn't mind editing some CMakeLists.txt, but since I'm working under a GUI based tool (VSCode), I was more thinking of using a menu function "Add File to project" like one is doing in Visual Studio or other GUI based IDEs.MicroController wrote: ↑Mon Apr 08, 2024 2:50 pmBuild System:
Add all source files (.c,.cpp) to the list of SRCS in idf_component_register(...) in the (main) component's CMakeLists.txt file.