Solved
Add new C file to my STM32 project in VS Code
If I add a new .c file to my project in core/src it does not get recognized and is not complled. How do I get it into the make list?
Thanks
If I add a new .c file to my project in core/src it does not get recognized and is not complled. How do I get it into the make list?
Thanks
Hi
There is no managed build, so you must define your new source file manually, preferably by editing the top-level CMakeLists.txt file:
# Add sources to executable/library
target_sources(<PROJECT_NAME> PRIVATE
# User defined sources
core/src/newFile.c
)<PROJECT_NAME> to be replaced according to your project (see used value from the cmake files).
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.