release 0.4
[rrq/fuse_xattrs.git] / CMakeLists.txt
index a17e2b355c3f756c70ecc07db62cf4d6641de444..1cb4b4f7a58b89eb983462d4fad63473f28cf49e 100644 (file)
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
 project(fuse_xattrs C)
 
 set(FUSE_XATTRS_VERSION_MAJOR 0)
-set(FUSE_XATTRS_VERSION_MINOR 2)
+set(FUSE_XATTRS_VERSION_MINOR 4)
 
 set(BINARY_SIDECAR_EXT \".xattr\")
 
@@ -34,11 +34,11 @@ endif()
 include (CheckCSourceCompiles)
 check_c_source_compiles ("
   #include <sys/types.h>
-  #include <attr/xattr.h>
+  #include <sys/xattr.h>
   int main() { return 1; }
-  " HAVE_ATTR_XATTR_H)
-if(NOT HAVE_ATTR_XATTR_H)
-    message(FATAL_ERROR "attr/xattr.h not found")
+  " HAVE_SYS_XATTR_H)
+if(NOT HAVE_SYS_XATTR_H)
+    message(FATAL_ERROR "sys/xattr.h not found")
 endif()
 
 # set required definitions
@@ -68,10 +68,18 @@ set(SOURCE_FILES
 
 add_executable(fuse_xattrs ${SOURCE_FILES})
 
-target_link_libraries (
-        fuse_xattrs
-        fuse
-)
+if(APPLE)
+    target_link_libraries (
+            fuse_xattrs
+            osxfuse
+    )
+else()
+    target_link_libraries (
+            fuse_xattrs
+            fuse
+    )
+endif()
+
 
 install (TARGETS fuse_xattrs DESTINATION bin)
 install (