title: How to compile GLUT + OpenGL project with CMake and Kdevelop in linux?
body: <p>As the titles says I can't seem to build the project with OpenGL and Glut.</p>
  
  <p>I get Undefined reference errors for OpenGL functions.</p>
  
  <p>I tried doing :</p>
  
  <pre><code>project(testas)
  find_package(OpenGL)
  find_package(GLUT)
  add_executable(testas main.cpp)
  </code></pre>
  
  <p>But that doesn't work.</p>
  
  <p>Any suggestions?</p>