Issue
I have seen many open-source projects use CMake as their build system. I'd like to use it too, but so far all of my development has been on Visual Studio (2015). This makes me wonder how I'm supposed to edit code when using CMake as a build system? Should I use editors like Vim or emacs, or can I still use Visual Studio (with IntelliSense, if possible)?
Solution
You can use CMake to generate Visual Studio solution for you: https://cognitivewaves.wordpress.com/cmake-and-visual-studio/
But unfortunately the opposite is not possible(or harder than expected), for every new file or include folder generation you will have to update your CMakeLists.txt file respectively(edits do not require updating CMake), looking at the Visual Studio flags while compiling could help this, but the process is still manual:
Using CMake to generate Visual Studio C++ project files
cmake creating visual studio solution on the command line
There are also 3rd Party tools which could facilitate the production cycle for you, including the visual studio to CMake generation, but they are not officially supported
Answered By - lkn2993 Answer Checked By - Timothy Miller (WPSolving Admin)