I added a couple of .c and .h files in a newly created folder, as a custom library, at the same level with Core folder. When running the Create project from ST project command again, the source files are picked up and added to target_sources but the target_include_directories is not updated accordingly, so the build fails. I managed to fix this by creating a separate .cmake file with a function that includes these directory and add the call to that function in CMakeLists.txt.
Would it be possible to update target_include_directories in the st-project.cmake file as well? Or is there a better way of handling such cases?
I added a couple of .c and .h files in a newly created folder, as a custom library, at the same level with
Core
folder. When running theCreate project from ST project
command again, the source files are picked up and added totarget_sources
but thetarget_include_directories
is not updated accordingly, so the build fails. I managed to fix this by creating a separate.cmake
file with a function that includes these directory and add the call to that function inCMakeLists.txt
. Would it be possible to updatetarget_include_directories
in thest-project.cmake
file as well? Or is there a better way of handling such cases?