'How to install libcurl in clion&

I read lots of articles about this problem and still can't solve it

This is cmake

cmake_minimum_required(VERSION 3.17)
project(l2)

set(CMAKE_CXX_STANDARD 14)

set(libcurl_INCLUDE_DIR "C:/tools/curl-7.82.0-win32-mingw/curl-7.82.0-win32-mingw/include")
include_directories(${libcurl_INCLUDE_DIR})

add_executable(l2 main.cpp)

target_link_libraries(l2 C:/tools/curl-7.82.0-win32-mingw/curl-7.82.0-win32-mingw/lib/libcurl.dll.a)

Also I placed libcurl.dll.a in cmake-build-debug folder but I still have this error

Process finished with exit code -1073741515 (0xC0000135)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source