c++ - CLion CMakeLists.txt add argv arguments to configuration -
i have configuration in cmakelists.txt
set(source_files client/client.cpp) add_executable(client ${source_files} client/client.cpp)
so can launch client.cpp in clion (shift + f10). if need launch client.cpp argv parameter (it has 1 integer parameter) must change configuration in clion adding program arguments.
maybe can add parameters using cmakelists.txt?
cmakelist responsible configuring program, generating makefile, build program binary. clion launch binary using arguments specified.
Comments
Post a Comment