<br><font size=2 face="sans-serif">Hello</font>
<br>
<br><font size=2 face="sans-serif">I'd need to get the filepath of a created
executable file, so that i can use the filepath on a custom command.</font>
<br>
<br><font size=2 face="sans-serif">add_executable(Program ...)</font>
<br>
<br><font size=2 face="sans-serif">add_custom_command(TARGET Program POST_BUILD
COMMAND ${ProgramToRun} ${Program} ...)</font>
<br>
<br><font size=2 face="sans-serif">To clarify, i'd like to run the executable
"ProgramToRun" with a command line argument that is a path to
the executable created by add_executable.</font>
<br>
<br><font size=2 face="sans-serif">the problem i'm facing is that with
visual studio, the path is something like</font>
<br>
<br><font size=2 face="sans-serif"><some_path>/build/Program/debug/Program.exe</font>
<br>
<br><font size=2 face="sans-serif">or with release</font>
<br>
<br><font size=2 face="sans-serif"><some_path>/build/Program/release/Program.exe</font>
<br>
<br><font size=2 face="sans-serif">I have tried messing around with some
variables such as:</font>
<br><font size=2 face="sans-serif">- RUNTIME_OUTPUT_DIRECTORY</font>
<br><font size=2 face="sans-serif">- BUILD_TYPE</font>
<br><font size=2 face="sans-serif">Possibly others i can't remember, and
undo wont show on my editor for some odd reason.</font>
<br>
<br><font size=2 face="sans-serif">I think there has to be a way, since
how would </font>
<br>
<br><font size=2 face="sans-serif">INSTALL(TARGETS Program)</font>
<br>
<br><font size=2 face="sans-serif">know what files to copy.</font>
<br>
<br><font size=2 face="sans-serif">i'd like to get my hands on that very
information.</font>
<br>
<br><font size=2 face="sans-serif">-mika</font>