Is it possible to configure CLion to compile source files in a project independently?

前端 未结 5 580
走了就别回头了
走了就别回头了 2020-12-23 17:12

I am currently doing some Project Euler challenges in C using the JetBrains CLion IDE. When I completed these in Python and Java (in PyCharm and IntelliJ, respectively), I w

5条回答
  •  不知归路
    2020-12-23 17:55

    Even I was facing the same problem, it's a tiring job to edit CMake file and add executable every time. So I found a solution to this,

    There is a plugin which does it seamlessly for you.

    Just add this plugin to your CLion and whichever file you want to make is executable right click and add it as Executable,

    It will automatically edit your CMake file.

    Link:

    https://plugins.jetbrains.com/plugin/8352-c-c--single-file-execution

提交回复
热议问题