Hi I’d like to create a CMake managed project with the following example directory structure:
root - mainly empty, perhaps just a cmaklistfiles.txt file
Where root is the ‘project directory’
I’d like the main.cpp to be able to just #include “main.hpp” without having to use do #include “include/main.hpp”
Ideally one CMakeListFiles.txt in the root directory, but I can like with sub dirs.
This is an exectuable. Might want to end up adding a root/test dir too.
Modern version of CMake, e.g. 3.1+
Using make on linux and optionally nmake on windoze FWIW.
Apologies if this is documented or answered elsewhere - just link me the answer if that’s the case.