Where would I go within CMakeLists.txt in order to change the name of the generated file?
For an executable target see target properties OUTPUT_NAME and SUFFIX. The actual output name if a combination of OUTPUT_NAME.SUFFIX with
OUTPUT_NAME defaulting to the target's name SUFFIX defaulting to
.exe on Windows platforms)So the following example would override both defaults:
add_executable(a ...)
set_target_properties(
a
PROPERTIES
OUTPUT_NAME "myname"
SUFFIX ".myext"
)
Would generate myname.myext for target a.
For more details e.g. take a look at adding program suffix.