Re: [CMake] add_executable created file name

2010-12-28 Thread Mika . Rajala
Thanks, this works nicely Sorry for the double posting. I waited for 30 minutes and the mail didn't appear on the list, so I assumed it failed somehow. -mika Michael Wild Sent by: cmake-boun...@cmake.org 28.12.2010 16:23 To cmake@cmake.org cc Subject Re: [CMake] add_executable cr

Re: [CMake] add_executable created file name

2010-12-28 Thread Michael Wild
On 12/28/2010 02:39 PM, mika.raj...@patria.fi wrote: > Hello > > I'd need to get the filepath of a created executable file, so that i can > use the filepath on a custom command. > > add_executable(Program ...) > > add_custom_command(TARGET Program POST_BUILD COMMAND ${ProgramToRun} > ${Program

[CMake] add_executable created file name

2010-12-28 Thread Mika . Rajala
Hello I'd need to get the filepath of a created executable file, so that i can use the filepath on a custom command. add_executable(Program ...) add_custom_command(TARGET Program POST_BUILD COMMAND ${ProgramToRun} ${Program} ...) To clarify, i'd like to run the executable "ProgramToRun" with