You can put all the header / source files in the same folder and use something like
file(GLOB SOURCES header-folder/*.h source-folder/*.cpp ) add_executable(yourProj ${SOURCES})
Thus, you can use either of the following two methods to add the newly added header / source to VS:
- need to be created again in CMake.
- fake for editing
CMakeLists.txt bit, for example. just add a space. And then create your solution in VS, it will automatically add new header / source files.
source share