Based on Dr. Pretto slides from Prof. Nardi course "Tecniche di programmazione" 2017/2018.
The project is well-organized into folders:
- root : contains only CMakeList and README
- src : contains the source files (.c)
- include : contains the headers (.h)
- build : contains the makefile and the other outputs of the cmake process
- bin : contains the executables
- lib : contains the libraries
- doc : contains the documentation
Once the CMakeList file is ready, one has to:
- move to the "build" folder
- execute command '''bash ./build $ cmake .. ''' the two dots tell cmake the location of the file CMakeList, such location is called "source folder".
- always in "build" run make to produce the executable file.