I have a simple question about how to organize my simple MVC application in C++. I'm new to CMake and I'm just learning how to use it.
Imagine a simple folder organization like the following:
-Can someone please tell me if this structure is correct? -If so what is the best way to write the cmake files for it?
It looks pretty normal structure to me. In fact I use the same one in my projects. In the root CMake file you will put:
include(Src/Model/CMakelists.txt)
andCMakelists.txt
might look like this:Where
ALL_SOURCES
is the variable from the root file which is later passed toadd_executable
Repeat the same for all your subfolders and you will have the final project.