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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -