rig/cmake/FindUV.cmake

26 lines
559 B
CMake
Raw Normal View History

find_path(
UV_INCLUDE_DIR
NAMES uv.h
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
PATH_SUFFIXES "include"
2018-03-14 06:32:43 +07:00
NO_DEFAULT_PATH
)
2018-03-14 06:32:43 +07:00
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"
2018-03-14 06:32:43 +07:00
NO_DEFAULT_PATH
)
2017-06-04 20:52:21 +03:00
2018-03-14 06:32:43 +07:00
find_library(UV_LIBRARY NAMES libuv.a uv libuv)
2017-06-04 20:52:21 +03:00
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)