Move IDF project files into a subdir and recognize it in ESP-IDF extension
Posted: Tue May 13, 2025 3:17 pm
Hello,
I would like to change the structure of IDF project, which right now is the default one with:
- main
- CmakeLists.txt
- partitions.csv
- etc.
In the root of the repo. But I would like to change it, so my ESP IDF embedded code, is in subdirectory in the root of my repository, while still being able to build and flash my project using IDF Extension.
After trying to implement it, by putting IDF project into subfolder, and creating new CMakeLists.txt in the root of the repo, so our VS Code IDF extension sees it, I'm met with numerous toolchain errors, partial builds and so many issues.
I tried to fix it using Cmake syntax, but it seems there's something I'm missing.
Is there some official way of doing that? I tried to search in docs but I didn't find anything in particular.
tldr; trying to move IDF project from default structure, into one where embedded code resides in subdir of main project; numerous issues;
I would like to change the structure of IDF project, which right now is the default one with:
- main
- CmakeLists.txt
- partitions.csv
- etc.
In the root of the repo. But I would like to change it, so my ESP IDF embedded code, is in subdirectory in the root of my repository, while still being able to build and flash my project using IDF Extension.
After trying to implement it, by putting IDF project into subfolder, and creating new CMakeLists.txt in the root of the repo, so our VS Code IDF extension sees it, I'm met with numerous toolchain errors, partial builds and so many issues.
I tried to fix it using Cmake syntax, but it seems there's something I'm missing.
Is there some official way of doing that? I tried to search in docs but I didn't find anything in particular.
tldr; trying to move IDF project from default structure, into one where embedded code resides in subdir of main project; numerous issues;