This uses the cmake 'GNUInstallDirs' module, which has variables for
various installation directories, including CMAKE_INSTALL_MANDIR.
This closes bug #76.
cmake_minimum_required(VERSION 2.6)
include(FindPkgConfig)
+include(GNUInstallDirs)
project(pulseview)
#= 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)
#-------------------------------------------------------------------------------