I am having a bit of a problem with CMake regarding the organisation of my code within a solution.
I have for an habit to organise my namespace by creating a directory for each.
For example if I create something like this :
namespace test { namespace blabla { ... } }
I would create a directory test and inside of it a directory blabla, however CMake does not make them appear in my Visual studio or Xcode project.
Is there a trick to get it done ?
Try using the source_group command. After the call to
add_executableaddsource_groupstatements to structure your project as you wish, e.g.: