[CMake] setting executable runtime command line argument

2012-10-01 Thread Anton Deguet
Hello, I am wondering if there is a target property for executable to set a command line argument. I did a bit of googling but I might have missed it. Something like: add_executable (myProgram main.cpp) set_target_properties (myProgram COMMAND_LINE_ARGUMENTS --verbose --run) This would set

Re: [CMake] setting executable runtime command line argument

2012-10-01 Thread David Cole
See USERFILE_COMMAND_ARGUMENTS_DEBUG in this Stack Overflow question answer: http://stackoverflow.com/questions/1005901/how-to-set-path-environment-variable-using-cmake-and-visual-studio-to-run-test Also, be sure to read all the comments, too. There are helpful tips in there about what