[CMake] Keep folder structure in Visual Studio Project generated with CMake

2013-11-12 Thread Luca Gherardi
I have a projects in which the sources file are organizes in a hierarchy of directories. For example: - Src | - Folder A | - 1.cpp | - 1.hpp | - FolderA1 | - 2.cpp | - 2.hpp | - Folder B | - 3.cpp | - 3.hpp I wrote a CMakeLists.txt for generating a

Re: [CMake] Keep folder structure in Visual Studio Project generated with CMake

2013-11-12 Thread Magnus Therning
When I am forced to use VS for development work I tend to only use it as an editor and bild tool, i.e. I don't create files in it or add things to the project. Instead the sequence I use to add a file is: 1. touch the file I want created 2. modify the relevant CMakeLists.txt to include the