X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=CMakeLists.txt;h=9f2d870c2ebc54719578cdaf18addb5deaf36d29;hb=21ea68ce16d0d7e0b7ea5bc0c688e3e0a2c9a357;hp=2fcfc96f802431872882b58b16fe91d298664b3f;hpb=b0063ac38ae833b543d7301f34ed19e559f7fe49;p=rrq%2Ffuse_xattrs.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fcfc96..9f2d870 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 2.8 FATAL_ERROR) project(fuse_xattrs C) set(FUSE_XATTRS_VERSION_MAJOR 0) @@ -19,6 +19,11 @@ include_directories( "${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) @@ -67,6 +72,11 @@ target_link_libraries ( ) install (TARGETS fuse_xattrs DESTINATION bin) +install ( + FILES ${CMAKE_CURRENT_BINARY_DIR}/fuse_xattrs.1 + DESTINATION man/man1 + COMPONENT doc +) enable_testing() configure_file(run_tests.sh run_tests.sh COPYONLY)