inrichten des Pfads für die Lockenbibliothek in cma

Ich habe die "Curl-Bibliothek" zur Verwendung mit Anwendungen von Drittanbietern heruntergeladen. Wenn ich die enthaltene cmake-Datei ausführe, wird die folgende Fehlermeldung angezeigt. Bitte hilf mir. Ich schätze es

> The C compiler identification is MSVC 18.0.30501.0
    >     The CXX compiler identification is MSVC 18.0.30501.0
    >     Check for working C compiler using: Visual Studio 12 2013
    >     Check for working C compiler using: Visual Studio 12 2013 -- works
    >     Detecting C compiler ABI info
    >     Detecting C compiler ABI info - done
    >     Check for working CXX compiler using: Visual Studio 12 2013
    >     Check for working CXX compiler using: Visual Studio 12 2013 -- works
    >     Detecting CXX compiler ABI info
    >     Detecting CXX compiler ABI info - done
    >     Could NOT find CURL (missing:  CURL_LIBRARY) (found version "7.38.0")
    >     CMake Error at CMakeLists.txt:49 (MESSAGE):
    >       Could not find the CURL library and development files.  
    >     
    >     Configuring incomplete, errors occurred!
    >     See also "C:/BUILD/CMakeFiles/CMakeOutput.log".

Ich habe die Umgebungsvariable für "CURL_LIBRARY" in Windows so festgelegt, dass sie auf den Speicherort der Installation der Bibliotheksdateien für curl verweist. Cmake kann sie jedoch nicht finden, obwohl dies darauf hinweist, dass Version 7.38.0 auf meinem System erkannt wurde.

Danke für die Hilfe.

EDIT: cMakeLists.txt file

  ...
# 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)
   ...

Ich habe die Verzeichnisse include und lib in der Windows-Umgebungsvariablen festgelegt, aber keine Änderung.

EDIT: Dies ist die vollständige Projektdatei:cmake project.

Antworten auf die Frage(1)

Ihre Antwort auf die Frage