blob: 3aeb01195ec13756057d28b62818bd16786c2ca7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# - Try to find libuv
# Once done, this will define
#
# LibUV_FOUND - system has libuv
# LibUV_INCLUDE_DIRS - the libuv include directories
# LibUV_LIBRARIES - link these to use libuv
include(LibFindMacros)
# Include dir
find_path(LibUV_INCLUDE_DIR
NAMES uv.h
)
# The library itself
find_library(LibUV_LIBRARY
NAMES uv
)
# Set the include dir variables and the libraries and let libfind_process do the rest.
# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
set(LibUV_PROCESS_INCLUDES LibUV_INCLUDE_DIR)
set(LibUV_PROCESS_LIBS LibUV_LIBRARY)
libfind_process(LibUV)
|