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}/getrates" " -n < ${infile}"
  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
  VERBATIM
  )

This does not seem to work, however.  CMake doesn't handle the "<" properly.  
Any ideas about how to stream the contents of a file?

Thanks,

James
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to