title: CMake doesn't recognize types of winsock2
body: <p>I'm new in CMake and I'm trying to compile my winsock2 project using this, but still getting errors like:</p>
  
  <blockquote>
    <p>In file included from /cygdrive/c/Users/Kacper/Desktop/aurea/aurea/includes/WebServer.h:14:0,
                     from /cygdrive/c/Users/Kacper/Desktop/aurea/aurea/WebServer.cpp:1:
    /cygdrive/c/Users/Kacper/Desktop/aurea/aurea/includes/HttpServer.h:48:13: error: 'SOCKET' does not name a type
                 SOCKET server_socket</p>
  </blockquote>
  
  <p>There is my CMakeLists file: </p>
  
  <pre><code>    cmake_minimum_required(VERSION 2.8.9)
      project(aurea)
      include_directories(${CMAKE_SOURCE_DIR}/aurea/includes)
  
      find_library(WS2_32_LIBRARY ws2_32)
  
      set(CMAKE_CXX_FLAGS "-std=c++14 -Wall -Wextra")
  
      file(GLOB SOURCES aurea/*.cpp aurea/http/*.cpp aurea/router/*.cpp aurea/utils/*.cpp)
      file(GLOB HEADERS aurea/includes/*.h)
  
      add_executable(aurea ${SOURCES} ${HEADERS})
  
      target_link_libraries(aurea ${WS2_32_LIBRARY})
  </code></pre>
  
  <p>Why compiler doesn't recognize types of winsock? :&lt; When I'm trying to compile simple one file project linking ws2_32 like this there is no error, I think I'm wrong in setting sources but can't find mistake by myself.</p>