X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=CMakeLists.txt;h=0ebd0b2b041968dd6e36838a354c3df9d2bf4f60;hb=eb40672c499445e45975c064baec138bc72384f0;hp=2fcfc96f802431872882b58b16fe91d298664b3f;hpb=b0063ac38ae833b543d7301f34ed19e559f7fe49;p=rrq%2Ffuse_xattrs.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fcfc96..0ebd0b2 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) @@ -41,6 +46,8 @@ add_definitions (-D_FILE_OFFSET_BITS=64) 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) @@ -67,6 +74,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)