projects
/
rrq
/
fuse_xattrs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
release 0.4
[rrq/fuse_xattrs.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 2fcfc96f802431872882b58b16fe91d298664b3f..1cb4b4f7a58b89eb983462d4fad63473f28cf49e 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-1,8
+1,8
@@
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 2.8
FATAL_ERROR
)
project(fuse_xattrs C)
set(FUSE_XATTRS_VERSION_MAJOR 0)
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\")
set(BINARY_SIDECAR_EXT \".xattr\")
@@
-19,6
+19,11
@@
include_directories(
"${PROJECT_BINARY_DIR}"
)
"${PROJECT_BINARY_DIR}"
)
+configure_file (
+ "${PROJECT_SOURCE_DIR}/fuse_xattrs.1.in"
+ "${PROJECT_BINARY_DIR}/fuse_xattrs.1"
+)
+
# Check xattr headers
include (CheckIncludeFile)
check_include_file (sys/xattr.h HAVE_SYS_XATTR_H)
# Check xattr headers
include (CheckIncludeFile)
check_include_file (sys/xattr.h HAVE_SYS_XATTR_H)
@@
-29,11
+34,11
@@
endif()
include (CheckCSourceCompiles)
check_c_source_compiles ("
#include <sys/types.h>
include (CheckCSourceCompiles)
check_c_source_compiles ("
#include <sys/types.h>
- #include <
attr
/xattr.h>
+ #include <
sys
/xattr.h>
int main() { return 1; }
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
endif()
# set required definitions
@@
-41,6
+46,8
@@
add_definitions (-D_FILE_OFFSET_BITS=64)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")
+set(CMAKE_C_FLAGS "-O3")
+
option(ENABLE_CODECOVERAGE "Enable code coverage testing support" )
if(ENABLE_CODECOVERAGE)
include (CodeCoverage)
option(ENABLE_CODECOVERAGE "Enable code coverage testing support" )
if(ENABLE_CODECOVERAGE)
include (CodeCoverage)
@@
-61,12
+68,25
@@
set(SOURCE_FILES
add_executable(fuse_xattrs ${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 (TARGETS fuse_xattrs DESTINATION bin)
+install (
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/fuse_xattrs.1
+ DESTINATION share/man/man1
+ COMPONENT doc
+)
enable_testing()
configure_file(run_tests.sh run_tests.sh COPYONLY)
enable_testing()
configure_file(run_tests.sh run_tests.sh COPYONLY)