Well I’ve tried to add libuv to CMakeLists.txt for my project on Ubuntu, with the below code:
find_package(libuv REQUIRED)
target_link_libraries(${PROJECT_NAME} libuv::uv)
And it does not work, instead gave me an error I have no idea how to fix:
Make Error at CMakeLists.txt:201 (find_package):
By not providing "Findlibuv.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "libuv", but
CMake did not find one.
Could not find a package configuration file provided by "libuv" with any of
the following names:
libuvConfig.cmake
libuv-config.cmake
Add the installation prefix of "libuv" to CMAKE_PREFIX_PATH or set
"libuv_DIR" to a directory containing one of the above files. If "libuv"
provides a separate development package or SDK, be sure it has been
installed.
Does anyone know how I can fix this? The same code worked for curl, so I dont get why it fails to work for libuv.