Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify default command to compile single files #11

Open
prayutsu opened this issue Apr 27, 2021 · 0 comments
Open

Modify default command to compile single files #11

prayutsu opened this issue Apr 27, 2021 · 0 comments

Comments

@prayutsu
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant