You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many competitive programmers use CLion for compiling single files. I have also installed "Single file execution" plugin and I am able to run single .cpp files with ease by adding the file as an executable in CMakeLists.txt and just clicking the play button. Now, I want to compile all my C++ files by predefining a macro, e.g -
$ g++ my_file.cpp -Dmacro_name
How can I set this as a default behavior so that if I simply add the file as an executable and run the play button, the files are compiled with predefining the macro?
The text was updated successfully, but these errors were encountered:
Many competitive programmers use CLion for compiling single files. I have also installed "Single file execution" plugin and I am able to run single .cpp files with ease by adding the file as an executable in CMakeLists.txt and just clicking the play button. Now, I want to compile all my C++ files by predefining a macro, e.g -
$ g++ my_file.cpp -Dmacro_name
How can I set this as a default behavior so that if I simply add the file as an executable and run the play button, the files are compiled with predefining the macro?
The text was updated successfully, but these errors were encountered: