Configurando o caminho da biblioteca de curl no cmake
Eu baixei a "biblioteca de ondulação" para uso com um aplicativo de terceiros. Quando executo o arquivo cmake incluído, recebo o seguinte erro. Por favor me ajude. Eu agradeço:
> 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".
Defino a variável de ambiente para "CURL_LIBRARY" no Windows para apontar para o local da instalação dos arquivos de biblioteca para curl, mas o cmake ainda não pode encontrá-la, embora indique que a versão 7.38.0 foi detectada no meu sistema.
Obrigado pela ajuda..
EDIT: arquivo cMakeLists.txt
...
# 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)
...
Defino os diretórios include e lib na Variável de ambiente do Windows, mas nenhuma alteração.
EDIT: este é o arquivo completo do projeto:projeto cmake.