title: How to write the CMakeList file
body: <pre><code>cmake_minimum_required(VERSION 3.5.1 FATAL_ERROR)       
  project(WINDOW CXX) 
  set(WINDOW_SRCS window.cpp)     
  add_executable(Window ${WINDOW_SRCS})       
  set(CMAKE_CXX_STANDARD 14)  
  
  find_library(OPENGL_LIB 
      NAMES lGLEW lglfw3 lGL lrt lm ldl lXrandr lXinerama lXxf86vm lXext lXcursor lXrender lXfixes lX11 lpthread lxcb lXau lXdmcp lXi lSOIL lassimp 
      PATHS /usr/lib /usr/local/lib
  )   
  
  if(OPENGL_LIB)
      target_link_library(Window ${OPENGL_LIB})   
  endif() 
  </code></pre>
  
  <p>I am trying to write a CMakeList.txt file. I get an error in  the generated Makefile</p>
  
  <p>makefile:1: *** missing separator.  Stop.</p>
  
  <p>I've added <code>tabs</code> in the beginning of each line. I can't figure out where is wrong</p>