Included CMake files not part of Visual Studio projects ?


using cmake 3.24 and Visual Studio (not Code) I can’t find the cmake files which are used in the project in the “Solution Explorer” widget.
I see the CMakeLists.txt, but I cannot find the other cmake files, which have been include()d or used via find_package().
Are they there and I’m just not looking in the right place ?
Or is there a reason why they are not part of the generated project ?


For some reason, only the files that create a target are mentioned there, all other ones have to be manually added as source files to targets.

I just did that but it’s not as easy as it sounds. I just wanted my own files, not the files from the CMake installation.

OTOH, when using the direct CMake support from VS (opening the folder, not the sln file), you should see all CMake files.