CLion link external source files into workspace
Answered
Hello,
I'm trying to port a project from STM32CubeIDE (Eclipse based) to CLion.
I have source/header files that are not in the root project folder. They are on a higher level.
In STM32CubeIDE I was able to link an external folder in the workspace and compile the folder contents. Can I do the same in CLion?
To rephrase the question, do the source files have to be in the root project directory to be compiled in CLion?
Thank you in advance :)
Please sign in to leave a comment.
Hello!
Source files have to be added to a build target through a build system (CMake, Makefile, etc.) in order to be compiled.