[CMake] add_executable created file path

Mika.Rajala at patria.fi Mika.Rajala at patria.fi
Tue Dec 28 08:56:50 EST 2010


Hello

I'm using add_executable to create an executable file.

I'd like to extract the filepath of the created executable for a custom 
command.

This causes some trouble for me because I use and must use visual studio.
The familiar problem with the build type being added as a subfolder.

However, i see that the command

install(targets Target)

somehow manages to extract the very information i'm intrested in.

Is there any way for me to do the same?

-mika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101228/c3053601/attachment.htm>


More information about the CMake mailing list