mirror of
https://github.com/vgough/encfs.git
synced 2024-11-21 23:43:26 +01:00
fb9a8ff879
git-svn-id: http://encfs.googlecode.com/svn/trunk@92 db9cf616-1c43-0410-9cb8-a902689de0d6
36 lines
895 B
CMake
36 lines
895 B
CMake
# Find the FUSE includes and library
|
|
#
|
|
# FUSE_INCLUDE_DIR - where to find fuse.h, etc.
|
|
# FUSE_LIBRARIES - List of libraries when using FUSE.
|
|
# FUSE_FOUND - True if FUSE lib is found.
|
|
|
|
# check if already in cache, be silent
|
|
IF (FUSE_INCLUDE_DIR)
|
|
SET (FUSE_FIND_QUIETLY TRUE)
|
|
ENDIF (FUSE_INCLUDE_DIR)
|
|
|
|
# find includes
|
|
FIND_PATH (FUSE_INCLUDE_DIR fuse.h
|
|
/usr/local/include/osxfuse
|
|
/usr/local/include
|
|
/usr/include
|
|
)
|
|
|
|
# find lib
|
|
if (APPLE)
|
|
SET(FUSE_NAMES libosxfuse.dylib fuse)
|
|
else (APPLE)
|
|
SET(FUSE_NAMES fuse)
|
|
endif (APPLE)
|
|
FIND_LIBRARY(FUSE_LIBRARIES
|
|
NAMES ${FUSE_NAMES}
|
|
PATHS /lib64 /lib /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib
|
|
)
|
|
|
|
include ("FindPackageHandleStandardArgs")
|
|
find_package_handle_standard_args ("FUSE" DEFAULT_MSG
|
|
FUSE_INCLUDE_DIR FUSE_LIBRARIES)
|
|
|
|
mark_as_advanced (FUSE_INCLUDE_DIR FUSE_LIBRARIES)
|
|
|