This will create an complete installer package for most platforms. Thereafter with `Findlibuv.cmake` in there directory and something like the following in there `CMakeLists.txt`.
```
find_package(libuv QUIET)
if(NOT libuv_FOUND)
FetchContent_Declare(libuv
URL https://github.com/libuv/libuv/archive/refs/tags/v1.48.0.zip
URL_MD5 67d0e50ac6e95de12b09b17ff8baed0f
)
FetchContent_MakeAvailable(libuv)
endif()
```
I think https://github.com/libuv/libuv/pull/3194 should just be closed, it just doesn't actually automate any process, which was my initial use case, grab binary without me doing any building.
9 lines
223 B
CMake
9 lines
223 B
CMake
set(LIBUV_VERSION ${PROJECT_VERSION})
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
set_and_check(LIBUV_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
|
|
set_and_check(LIBUV_SYSCONFIG_DIR "@PACKAGE_SYSCONFIG_INSTALL_DIR@")
|
|
|
|
check_required_components(libuv)
|