2015-06-14 07:08:13 +02:00
|
|
|
# Find the FUSE includes and library
|
|
|
|
#
|
2020-03-03 22:48:28 +01:00
|
|
|
# FUSE_INCLUDE_DIR - where to find fuse.h, etc.
|
|
|
|
# FUSE_LIBRARIES - List of libraries when using FUSE.
|
|
|
|
# FUSE_ROOT_DIR - Additional search path.
|
|
|
|
# FUSE_FOUND - True if FUSE lib is found.
|
2015-06-14 07:08:13 +02:00
|
|
|
|
|
|
|
# check if already in cache, be silent
|
2020-03-03 22:48:28 +01:00
|
|
|
if (FUSE_INCLUDE_DIR AND FUSE_LIBRARIES)
|
|
|
|
SET (FUSE_FIND_QUIETLY TRUE)
|
|
|
|
endif ()
|
2015-06-14 07:08:13 +02:00
|
|
|
|
|
|
|
if (APPLE)
|
2015-06-16 17:03:02 +02:00
|
|
|
set (FUSE_NAMES libosxfuse.dylib fuse)
|
|
|
|
set (FUSE_SUFFIXES osxfuse fuse)
|
2020-03-03 22:48:28 +01:00
|
|
|
else ()
|
2017-06-19 20:58:30 +02:00
|
|
|
set (FUSE_NAMES fuse refuse)
|
|
|
|
set (FUSE_SUFFIXES fuse refuse)
|
2020-03-03 22:48:28 +01:00
|
|
|
endif ()
|
2015-06-16 17:03:02 +02:00
|
|
|
|
2020-03-03 22:48:28 +01:00
|
|
|
# find include
|
|
|
|
find_path (
|
|
|
|
FUSE_INCLUDE_DIR fuse.h
|
|
|
|
PATHS /opt /opt/local /usr /usr/local /usr/pkg ${FUSE_ROOT_DIR} ENV FUSE_ROOT_DIR
|
|
|
|
PATH_SUFFIXES include ${FUSE_SUFFIXES})
|
2015-06-16 17:03:02 +02:00
|
|
|
|
|
|
|
# find lib
|
2020-03-03 22:48:28 +01:00
|
|
|
find_library (
|
|
|
|
FUSE_LIBRARIES
|
|
|
|
NAMES ${FUSE_NAMES}
|
|
|
|
PATHS /opt /opt/local /usr /usr/local /usr/pkg ${FUSE_ROOT_DIR} ENV FUSE_ROOT_DIR
|
|
|
|
PATH_SUFFIXES lib)
|
2015-06-14 07:08:13 +02:00
|
|
|
|
|
|
|
include ("FindPackageHandleStandardArgs")
|
2020-03-03 22:48:28 +01:00
|
|
|
find_package_handle_standard_args (
|
|
|
|
"FUSE" DEFAULT_MSG
|
2015-06-14 07:08:13 +02:00
|
|
|
FUSE_INCLUDE_DIR FUSE_LIBRARIES)
|
|
|
|
|
|
|
|
mark_as_advanced (FUSE_INCLUDE_DIR FUSE_LIBRARIES)
|