You can turn a folder within a Git repository into a brand new repository. If you create a new clone of the repository, you won't lose any of your Git history or changes when you split a folder into …
CMake produces Visual Studio solutions seamlessly. This post will map CMake commands to the Visual Studio IDE with an example which makes learning much easier.