2025-02-19 09:36 AM - edited 2025-02-19 09:37 AM
Hello,
I've started working with CMake in STM32CubeIDE:
STM32CubeIDE
Version: 1.17.0
Build: 23558_20241125_2245 (UTC)
(C) 2024 STMicroelectronics ALL RIGHTS RESERVED
Everything works perfectly, and I can compile without any issues.
However, I'm not sure if I'm doing something wrong or if it's just not supported, but I don't see any integration between the '.cproject' and CMake.
Let me explain.
If I want to add a new compilation symbol or an include path, I used to do it (befire working in CMake based projects) from STM32CubeIDE via the '.cproject':
If I add 'include paths' or 'symbols' from here, the compilation fails as CMake has not visibility of them. The only way I've managed to make it work is by manually editing the CMakeLists.txt files. Is this normal, or am I am missing something?
The same happens in reverse. If I add a 'symbol' or an 'include path' to the corresponding CMakeLists.txt, the project compiles, but the STM32CubeIDE's indexer doesn't recognize the symbols or include paths, which makes development within the IDE more cumbersome.
In VSCode, does the same thing happen? Do you always have to manually edit the CMakeLists.txt or there is a GUI tool to handle it?
Thank you very much,
Carles
2025-02-20 01:25 AM - edited 2025-02-20 01:25 AM
Ive been having the same issue, having to actualice both CMAKElists manually to affect the build process and CubeIDE manually to affect the linking .
, lets summon the wizards @Imen.D @rwx @Souhaib MAZHOUD