I'm looking for the quickest and most natural way to get the final binary name of a target, ideally before add_executable() or add_library() is called (not sure if this is possible).<div><br></div><div>For example, if my executable target's output is fubar.exe, I want to get "fubar.exe" in a variable.</div>
<div><br></div><div>Any examples? Thanks.</div>