[CMake] How to get target binary name?

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


Another note: This has to work the same for both release and debug, and for
both visual studio and makefile generators.

On Wed, Jun 20, 2012 at 12:40 PM, Robert Dailey <rcdailey.lists at gmail.com>wrote:

> 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/2c71a764/attachment.htm>


More information about the CMake mailing list