2023-02-26 14:32:08 -07:00
|
|
|
find_path(LIBLUV_INCLUDE_DIR luv/luv.h)
|
2023-04-18 15:47:15 -07:00
|
|
|
find_library(LIBLUV_LIBRARY NAMES luv_a luv libluv_a)
|
|
|
|
|
|
|
|
# Ubuntu-specific workaround to find system paths
|
|
|
|
function(ubuntu)
|
|
|
|
set(CMAKE_FIND_LIBRARY_PREFIXES "")
|
|
|
|
find_path(LIBLUV_INCLUDE_DIR luv/luv.h PATH_SUFFIXES lua5.1)
|
|
|
|
find_library(LIBLUV_LIBRARY NAMES luv PATH_SUFFIXES lua/5.1)
|
|
|
|
endfunction()
|
|
|
|
ubuntu()
|
|
|
|
|
2023-03-02 14:50:43 -07:00
|
|
|
find_package_handle_standard_args(Libluv DEFAULT_MSG
|
2019-06-10 05:13:18 -07:00
|
|
|
LIBLUV_LIBRARY LIBLUV_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(LIBLUV_INCLUDE_DIR LIBLUV_LIBRARY)
|