From: Uwe Hermann Date: Sat, 4 May 2013 12:11:29 +0000 (+0200) Subject: Install the manpage upon 'make install'. X-Git-Tag: pulseview-0.1.0^0 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=52bbe6001445a59a60c95de0f4320a8166b4bddd;p=pulseview.git 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. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6aa6e9fb..0a754020 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) #-------------------------------------------------------------------------------