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




--

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