My problem is that I am forced to rerun CMake each time I add a new source file, which is really annoying... Is there any way CMake could detect newly added source file auto
CMake does not offer such a way. How should CMake detect these new files without being called?
I am not sure whether Xcode or Visual Studio automatically re-runs CMake when new files are added.