title: CMake Target Link Library "Could NOT find GLUT (missing: GLUT_glut_LIBRARY)"
body: <p>Following is my cmake file on which I get the error "Could NOT find GLUT (missing: GLUT_glut_LIBRARY)". I guess there is problem with my target link library. What exactly am I doing wrong ?</p>
  
  <pre><code>cmake_minimum_required(VERSION 2.6)
  
  SET(MY_PROJECT_NAME Test_1)
  SET(MY_SOURCE_FILES Task_1.cpp)
  SET(GLUT_INCLUDE_DIR C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\GL)
  SET(GLUT_LIBRARY C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib\glut32.lib)
  
  project(${MY_PROJECT_NAME})
  
  # required libraries
  find_package(OpenGL REQUIRED)
  find_package(GLUT   REQUIRED)
  
  # include directories
  include_directories(
      ${GLUT_LIB_DIR}
      ${OPENGL_INCLUDE_DIR}
      ${GLUT_INCLUDE_DIR}
  )
  
  # source code files (sources *and* headers )
  add_executable(${MY_PROJECT_NAME}
      ${MY_SOURCE_FILES}
  )
  
  # link against these libraries
  target_link_libraries(${MY_PROJECT_NAME}
      ${GLUT_LIBRARY} 
      ${OPENGL_LIBRARY}
  )
  </code></pre>