title: Using SDL2 with CMake
body: <p>I'm trying to use CLion to create a SDL2 project.
  The problem is that the SDL headers can't be found when using #include's.</p>
  
  <p>My CMakeLists.txt file:</p>
  
  <pre><code>cmake_minimum_required(VERSION 2.8.4)
  project(ChickenShooter)
  
  set(SDL2_INCLUDE_DIR C:/SDL/SDL2-2.0.3/include)
  set(SDL2_LIBRARY C:/SDL/SDL2-2.0.3/lib/x64)
  
  include_directories(${SDL2_INCLUDE_DIR})
  set(SOURCE_FILES main.cpp)
  
  add_executable(ChickenShooter ${SOURCE_FILES})
  target_link_libraries(ChickenShooter ${SDL2_LIBRARY})
  </code></pre>
  
  <p>My test main.cpp:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "SDL.h" /* This one can't be found */
  
  int main(){
      if (SDL_Init(SDL_INIT_VIDEO) != 0){
          std::cout &lt;&lt; "SDL_Init Error: " &lt;&lt; SDL_GetError() &lt;&lt; std::endl;
          return 1;
      }
      SDL_Quit();
      return 0;
  }
  </code></pre>
  
  <p>Thank you for any help you could give me.</p>
  
  <p>Edit:
  I'm using Windows and CLion is configured to use cygwin64.</p>