Is there a way to automatically set the add_executable’s target name to it’s source file name in CMake?
I’m quite new to CMake. I want to get the executable for some CPP files with their filename as their executable filename. For example output1.cpp gives the executable named output1.
Currently I’m using the following lines in my CMakeLists.txt file.