What version of cmake is running in your environment?
- The version of
cmakerunning in my environment is version 3.28.3
Targets for make help
allcleandependedit_cacherebuild_cachehello_worldhello.ohello.ihello.s
The all argument does the entire compilation and creates the exceutblae for the targetifed files in the CMakeLists.txt file. This is also the default argument if no target is specified.
The hello.o argument is the object code for hello.cpp
The hello.i argument is the expanded code file for hello.cpp
The hello.s argument is the assembly file for hello.cpp
- The paths used by
target_sourcesandtarget_include_directoriesare relative to the parent directory of include/ and src/ which in my lab 1 Folder set up would be proc-design-Lab-1/ - Cmake is a metabuild system, which is what is used to produce
ninjaandmakewhich in turn creates an excecutable file. - It is important to run
cmakein its own directory because it creates a lot of files when ran. The separate folder is used to contain the files produces as to not clutter the main working directory.