title: Linked Error when using OpenGL and GLUT libraries in CLion (MacOS)
body: <p>I'm trying to use OpenGL and GLUT in CLion. My CMakeLists.txt:</p>
  
  <pre><code>cmake_minimum_required(VERSION 3.14)
  project(Graphos)
  
  set(CMAKE_CXX_STANDARD 17)
  
  find_library(GLUT REQUIRED)
  find_library(OpenGL REQUIRED)
  
  include_directories(.)
  
  add_executable(
          Graphos
          AdjacencyList.h
          main.cpp
          Node.h
          UsefulFunctions.h
          Macros.h
          Coordinates.h
          GraphDrawer.h
  )
  </code></pre>
  
  <p>When I run the project I get the following Linker Error:</p>
  
  <p><code>Undefined symbols for architecture x86_64: "_glClearColor", referenced from: ...</code></p>
  
  <p>that lists several gl and glut functions.</p>
  
  <p>This is the OpenGL code that I've written:</p>
  
  <pre><code>GLvoid initGL() {
          glClearColor(0, 0, 0, 1);
          glMatrixMode(GL_PROJECTION);
          glLoadIdentity();
  }
  
  GLvoid initialize(int argc, char** argv) {
          glutInit(&amp;argc, argv);
          glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH);
          glutInitWindowSize(WINDOW_WIDTH, WINDOW_HEIGHT);
          glutInitWindowPosition(200,200);
          glutCreateWindow("Graphs");
          initGL();
  }
  
  </code></pre>
  
  <p>Help me please.</p>