title: Running Opengl program with CLion IDE
body: <p>I know this question has been asked already but the solutions provided really hasn't worked for me.</p>
  
  <p>I want to run my OpenGL program via CLion IDE. I am able to run the same program via the terminal in Ubuntu using</p>
  
  <pre><code>$gcc progname.c -lglut -lGL -lGLU
  </code></pre>
  
  <p>but am unable to run the same in CLion</p>
  
  <p>This is my CMakeLists.txt file</p>
  
  <p><a href="https://i.stack.imgur.com/5hfou.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5hfou.png" alt="enter image description here"></a></p>
  
  <p>PS: I am using CLion in Ubuntu. Also there is no error in the program.</p>