Re: [CMake] process file contents

2010-05-12 Thread Magnus Therning
On 12/05/10 19:07, James C. Sutherland wrote: > > On May 12, 2010, at 11:43 AM, James C. Sutherland wrote: > >> I would like to execute a command like: >> getrates -n < myFileName >> >> I am trying to add this so it is processed after the target "getrates" >> is built >> >> set( infile ${CMAK

Re: [CMake] process file contents

2010-05-12 Thread James C. Sutherland
On May 12, 2010, at 11:43 AM, James C. Sutherland wrote: > I would like to execute a command like: > getrates -n < myFileName > > I am trying to add this so it is processed after the target "getrates" is > built > > set( infile ${CMAKE_CURRENT_BINARY_DIR}/myFileName ) > add_custom_comman

[CMake] process file contents

2010-05-12 Thread James C. Sutherland
I would like to execute a command like: getrates -n < myFileName I am trying to add this so it is processed after the target "getrates" is built set( infile ${CMAKE_CURRENT_BINARY_DIR}/myFileName ) add_custom_command( TARGET getrates POST_BUILD COMMAND "${CMAKE_CURRENT_BINARY_DIR}/get