[CMake] How to get target binary name?

Robert Dailey rcdailey.lists at gmail.com
Wed Jun 20 13:40:01 EDT 2012


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).

For example, if my executable target's output is fubar.exe, I want to get
"fubar.exe" in a variable.

Any examples? Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120620/5029aa4b/attachment.htm>


More information about the CMake mailing list