title: CMake and SOIL linking
body: <p>I installed SOIL library for my C++ OpenGL project, but i always get</p>
  
  <pre><code>undefined reference to `SOIL_load_OGL_texture'
  </code></pre>
  
  <p>As I read from searching, It means that OpenGL is linking before SOIL. I don't know much about CMAKE, but right now my CMAKEFile looks like this:</p>
  
  <pre><code>cmake_minimum_required(VERSION 2.8)
  
  project(game)
  add_executable(game main.cpp ...(many files))
  
  find_package(OpenGL REQUIRED)
  
  find_package(GLUT REQUIRED)
  include_directories( ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS})
  
  target_link_libraries(game ${OPENGL_LIBRARIES} ${SOIL} ${GLUT_LIBRARY})
  set(CMAKE_CXX_STANDARD 14)
  </code></pre>