mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 10:01:06 +00:00
25 lines
559 B
CMake
25 lines
559 B
CMake
find_path(
|
|
UV_INCLUDE_DIR
|
|
NAMES uv.h
|
|
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
|
|
PATH_SUFFIXES "include"
|
|
NO_DEFAULT_PATH
|
|
)
|
|
|
|
find_path(UV_INCLUDE_DIR NAMES uv.h)
|
|
|
|
find_library(
|
|
UV_LIBRARY
|
|
NAMES libuv.a uv libuv
|
|
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
|
|
PATH_SUFFIXES "lib"
|
|
NO_DEFAULT_PATH
|
|
)
|
|
|
|
find_library(UV_LIBRARY NAMES libuv.a uv libuv)
|
|
|
|
set(UV_LIBRARIES ${UV_LIBRARY})
|
|
set(UV_INCLUDE_DIRS ${UV_INCLUDE_DIR})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(UV DEFAULT_MSG UV_LIBRARY UV_INCLUDE_DIR)
|