project with .cpp and .h files in the same logical folder?

Sep 5, 2014 at 4:17 AM
Hi,

Is there a CMake setting/variable for how to generate a VS 2013 project with .cpp and .h files in the same folder? Also, we would like the project's folder structure to mimic the actual directory structure,

Warmest regards, Matt
Sep 5, 2014 at 10:44 PM
Nothing specific about MSFT tech, that's just cmake. That doesn't mean it's easy.
http://www.cmake.org/cmake/help/v3.0/command/source_group.html?highlight=source_group

get_filename_component and file(RELATIVE_PATH ...) are also useful for structuring projects. You can spend a lot of time making your project files pretty in cmake.
Sep 5, 2014 at 10:48 PM
Thank you Ted.