title: Setting up curl library path in cmake
body: <p>I downloaded "curl library" for use with a third party application. When I run the included cmake file, I get the following error. Please help me. I appreciate it:</p>
  
  <pre><code>&gt; The C compiler identification is MSVC 18.0.30501.0
      &gt;     The CXX compiler identification is MSVC 18.0.30501.0
      &gt;     Check for working C compiler using: Visual Studio 12 2013
      &gt;     Check for working C compiler using: Visual Studio 12 2013 -- works
      &gt;     Detecting C compiler ABI info
      &gt;     Detecting C compiler ABI info - done
      &gt;     Check for working CXX compiler using: Visual Studio 12 2013
      &gt;     Check for working CXX compiler using: Visual Studio 12 2013 -- works
      &gt;     Detecting CXX compiler ABI info
      &gt;     Detecting CXX compiler ABI info - done
      &gt;     Could NOT find CURL (missing:  CURL_LIBRARY) (found version "7.38.0")
      &gt;     CMake Error at CMakeLists.txt:49 (MESSAGE):
      &gt;       Could not find the CURL library and development files.  
      &gt;     
      &gt;     Configuring incomplete, errors occurred!
      &gt;     See also "C:/BUILD/CMakeFiles/CMakeOutput.log".
  </code></pre>
  
  <p>I set environment variable for "CURL_LIBRARY" in Windows to point to the location of the installation of library files for curl, but cmake can't still find it even though it indicates that version 7.38.0 was detected on my system. </p>
  
  <p>Thanks for the help..</p>
  
  <p>EDIT:
  cMakeLists.txt file</p>
  
  <pre><code>  ...
  # Look for required libraries
  SET(requiredlibs)
  
  FIND_PACKAGE(CURL)
  IF(CURL_FOUND)
    INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIR})
    SET(requiredlibs ${requiredlibs} ${CURL_LIBRARIES} )
  ELSE(CURL_FOUND)
    MESSAGE(FATAL_ERROR "Could not find the CURL library and development files.")
  ENDIF(CURL_FOUND)
     ...
  </code></pre>
  
  <p>I set the include and lib dirs in Windows Environment Variable, but no change. </p>
  
  <p>EDIT:
  this is complete project file: <a href="https://www.dropbox.com/sh/1g9d5zyqwb3vpnf/AAAho03bv3rswP9RTnz9nEqKa?dl=0" rel="noreferrer">cmake project</a>.</p>