2017-12-29 06:40:58 +00:00
|
|
|
# - Try to find libubox
|
|
|
|
# Once done this will define
|
|
|
|
# LIBUBOX_FOUND - System has libubox
|
2017-12-30 04:24:00 +00:00
|
|
|
# LIBUBOX_INCLUDE_DIR - The libubox include directories
|
|
|
|
# LIBUBOX_LIBRARY - The libraries needed to use libubox
|
2017-12-29 06:40:58 +00:00
|
|
|
|
2018-01-01 01:37:59 +00:00
|
|
|
find_path(LIBUBOX_INCLUDE_DIR libubox)
|
2017-12-29 06:40:58 +00:00
|
|
|
find_library(LIBUBOX_LIBRARY ubox PATH_SUFFIXES lib64)
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set LIBUBOX_FOUND to TRUE
|
|
|
|
# if all listed variables are TRUE and the requested version matches.
|
|
|
|
find_package_handle_standard_args(Libubox REQUIRED_VARS
|
|
|
|
LIBUBOX_LIBRARY LIBUBOX_INCLUDE_DIR
|
|
|
|
VERSION_VAR LIBUBOX_VERSION)
|
|
|
|
|
|
|
|
mark_as_advanced(LIBUBOX_INCLUDE_DIR LIBUBOX_LIBRARY)
|