2014-06-23 22:32:32 +00:00
|
|
|
# This module can find FUSE Library
|
|
|
|
#
|
|
|
|
# The following variables will be defined for your use:
|
|
|
|
# - FUSE_FOUND : was FUSE found?
|
|
|
|
# - FUSE_INCLUDE_DIRS : FUSE include directory
|
|
|
|
# - FUSE_LIBRARIES : FUSE library
|
|
|
|
|
|
|
|
find_path(
|
|
|
|
FUSE_INCLUDE_DIRS
|
2015-09-01 15:35:42 +00:00
|
|
|
NAMES fuse_common.h fuse_lowlevel.h fuse.h
|
2016-07-29 05:25:57 +00:00
|
|
|
PATHS /usr/local/include/osxfuse /usr/local/include
|
|
|
|
PATH_SUFFIXES fuse)
|
2014-06-23 22:32:32 +00:00
|
|
|
|
2016-07-29 05:25:57 +00:00
|
|
|
set(fuse_names fuse)
|
|
|
|
if(APPLE)
|
|
|
|
list(APPEND fuse_names libosxfuse.dylib)
|
|
|
|
endif()
|
2014-06-23 22:32:32 +00:00
|
|
|
|
2016-07-29 05:25:57 +00:00
|
|
|
find_library(FUSE_LIBRARIES
|
|
|
|
NAMES ${fuse_names}
|
|
|
|
PATHS /usr/local/lib64 /usr/local/lib)
|
2014-06-23 22:32:32 +00:00
|
|
|
|
2016-07-29 05:25:57 +00:00
|
|
|
include(FindPackageHandleStandardArgs)
|
2020-04-17 05:02:22 +00:00
|
|
|
find_package_handle_standard_args(FUSE DEFAULT_MSG
|
2016-07-29 05:25:57 +00:00
|
|
|
FUSE_INCLUDE_DIRS FUSE_LIBRARIES)
|
2014-06-23 22:32:32 +00:00
|
|
|
|
|
|
|
mark_as_advanced(
|
2016-07-29 05:25:57 +00:00
|
|
|
FUSE_INCLUDE_DIRS FUSE_LIBRARIES)
|