From 52bbe6001445a59a60c95de0f4320a8166b4bddd Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 4 May 2013 14:11:29 +0200 Subject: [PATCH] Install the manpage upon 'make install'. This uses the cmake 'GNUInstallDirs' module, which has variables for various installation directories, including CMAKE_INSTALL_MANDIR. This closes bug #76. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6aa6e9f..0a75402 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,7 @@ cmake_minimum_required(VERSION 2.6) include(FindPkgConfig) +include(GNUInstallDirs) project(pulseview) @@ -235,8 +236,12 @@ endif() #= Installation #------------------------------------------------------------------------------- +# Install the executable. install(TARGETS ${PROJECT_NAME} DESTINATION bin/) +# Install the manpage. +install(FILES doc/pulseview.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT doc) + #=============================================================================== #= Packaging (handled by CPack) #------------------------------------------------------------------------------- -- 2.30.2