title: How to make Cmake to include gl/GL.h?
body: <p>Hello I am new to Linux development, and just recently switched from Windows MSVS c++ development to Linux-based vim+cmake+gcc. I am using Debian Sid(unstable).</p>
  
  <p>I am trying to get code on subdivision, I have gotten from a friend to run. I am not really used to Cmake, and googling for help often is troublesome, since every other dist seems to have different packages and different solutions.</p>
  
  <blockquote>
    <p>cmake_minimum_required (VERSION 2.6) <br>project (Benchmark)<br>
    Find_Package(Qt4 REQUIRED) 
    Include(${QT_USE_FILE})</p>
    
    <p>find_package(OpenGL REQUIRED)<br>
    include_directories(${OPENGL_INCLUDE_DIR})</p>
    
    <p>set(CORELIBS ${QT_LIBRARY} ${OPENGL_LIBRARY} )</p>
    
    <p>File(GLOB SRC "<em>.cpp") <br> 
    File(GLOB HEAD "</em>.h") <br>
    add_executable(Benchmark ${SRC}) <br>
    target_link_libraries(Benchmark ${CORELIBS})</p>
  </blockquote>
  
  <p>That is my current Cmake, I want to use find_package(), GLOB etc to make it as dynamic as possible, and not use absolute paths.</p>
  
  <p>I get the following error when trying to build.</p>
  
  <blockquote>
    <p>subdivbench/Matrix4x4.h:4:19: fatal error: gl/GL.h: No such file or directory  <br>#include gl/GL.h<br>
    compilation terminated. make[2]: [CMakeFiles/Benchmark.dir/Matrix4x4.cpp.o] Error 1 make[1]: [CMakeFiles/Benchmark.dir/all] Error 2</p>
  </blockquote>
  
  <p>The code is fairly irrelevant, since it's working perfectly in windows, all I need to do is to make the include etc work for Linux.</p>