I am creating and building a c++
project using cmake
from scratch.
The executable requires command line arguments .
I am specifying them in Visual studio
.
Is it possible to specify them by default when cmake builds the project (in my CmakeLists.txt
for example) ? So that I (or others) won't need to specify these arguments each time I build the project for the first time (I would want to just run the project without worrying about that but still can change them in visual studio of course if needed) ?
如果您使用的是CMake 3.13及更高版本,则可以将VS_DEBUGGER_COMMAND_ARGUMENTS
属性添加到可执行目标,以便指定这些参数。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.