title: linking sfml with cmake (Windows MinGW)
body: <p>I can't seem to link <code>SFML</code> to my executable using <code>cmake</code>. </p>
  
  <p><strong>CMakeLists.txt:</strong></p>
  
  <pre><code>cmake_minimum_required(VERSION 3.0.0)
  project(Tut3)
  
  set(LIBS_DIR ~/../../Libraries)
  
  add_executable(Tut3 main.cpp)
  
  set(CMAKE_MODULE_PATH ${LIBS_DIR}/sfml/cmake/Modules)
  find_package(SFML REQUIRED system window graphics)
  target_link_libraries(Tut3 ${SFML_LIBRARIES})
  </code></pre>
  
  <p><strong>Error I get when running cmake:</strong></p>
  
  <blockquote>
    <p>CMake Error at C:/Libraries/sfml/cmake/Modules/FindSFML.cmake:355
    (message):  Could NOT find SFML (missing: SFML_SYSTEM_LIBRARY
    SFML_WINDOW_LIBRARY  SFML_GRAPHICS_LIBRARY)</p>
    
    <p>Call Stack (most recent call first): CMakeLists.txt:9 (find_package)</p>
  </blockquote>
  
  <p>the sfml directory contains a 32bit <code>MinGW</code> compiled <code>sfml</code> repository. I am using Windows. The cmake command I use is:</p>
  
  <pre><code>cmake -G "MinGW Makefiles" ..dir..
  </code></pre>