FreeRDP/cmake/InstallFreeRDPMan.cmake
Bernhard Miklautz d817469b78 Install man pages
* man pages are only build/installed if WITH_MANPAGES is enabled
* create a new cmake function install_freerdp_man to unified install man
  pages
* install all man pages using the new function
* update the nightly packages accordingly
2017-01-16 11:34:32 +01:00

10 lines
280 B
CMake

function(install_freerdp_man manpage section)
if(WITH_MANPAGES)
if(OPENBSD)
install(FILES ${manpage} DESTINATION man/man${section})
else()
install(FILES ${manpage} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/man/man${section})
endif()
endif()
endfunction()