cmake Tutorial => Executables
https://riptutorial.com/cmake/example/10592/executablesTo create a build target producing an executable, one should use the add_executable command: add_executable (my_exe main.cpp utilities.cpp) This creates a build target, e.g. make my_exe for GNU make, with the appropriate invocations of the configured compiler to produce an executable my_exe from the two source files main.cpp and utilities.cpp.