[CMake] setting executable runtime command line argument
Anton Deguet
anton.deguet at jhu.edu
Mon Oct 1 14:15:10 EDT 2012
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 the command line options for debugging for most supported IDE (Visual Studio, XCode, ...).
Sincerely,
Anton
More information about the CMake
mailing list