diff options
author | Simon Rettberg | 2015-04-24 17:13:31 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-04-24 17:13:31 +0200 |
commit | ee62ca14800eb27e51038a78a0dab4f71b6be31f (patch) | |
tree | 11bc7d301dafd884dfdfe52bf91d75dc84a83dfb /cmake | |
parent | Fuse (diff) | |
download | dnbd3-ee62ca14800eb27e51038a78a0dab4f71b6be31f.tar.gz dnbd3-ee62ca14800eb27e51038a78a0dab4f71b6be31f.tar.xz dnbd3-ee62ca14800eb27e51038a78a0dab4f71b6be31f.zip |
[FUSE] Integrate into cmake build process
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindFuse.cmake | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cmake/FindFuse.cmake b/cmake/FindFuse.cmake new file mode 100644 index 0000000..b9c6f91 --- /dev/null +++ b/cmake/FindFuse.cmake @@ -0,0 +1,30 @@ +# - Find fuse +# Find the native fuse includes and library +# +# FUSE_INCLUDE_DIR - where to find fuse/fuse.h. +# FUSE_LIBRARIES - List of libraries when using fuse. +# FUSE_FOUND - True if fuse found. + + +IF (FUSE_INCLUDE_DIR) + # Already in cache, be silent + SET(FUSE_FIND_QUIETLY TRUE) +ENDIF (FUSE_INCLUDE_DIR) + +FIND_PATH(FUSE_INCLUDE_DIR fuse/fuse.h) + +SET(FUSE_NAMES fuse) +FIND_LIBRARY(FUSE_LIBRARY NAMES ${FUSE_NAMES} ) + +# handle the QUIETLY and REQUIRED arguments and set FUSE_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(FUSE REQUIRED FUSE_LIBRARY FUSE_INCLUDE_DIR) + +IF(FUSE_FOUND) + SET( FUSE_LIBRARIES ${FUSE_LIBRARY} ) +ELSE(FUSE_FOUND) + SET( FUSE_LIBRARIES ) +ENDIF(FUSE_FOUND) + +MARK_AS_ADVANCED( FUSE_LIBRARY FUSE_INCLUDE_DIR ) |