Recently, I am practicing C/C++.
I was trying to practice with LeetCode, and I would like to have all executable files under the same project.
After trying a lot of methods, finally, I did it with CLion.
Tool: CLion.
By adding the new file to a new executable target in CMake file everytime, you could run every program individually.