X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/0fa2d27df5433816e7e659bd1115d2fff42288b0..67fd00b35aabe932cff75d1945b26db7020d1ec6:/doc/man/CMakeLists.txt diff --git a/doc/man/CMakeLists.txt b/doc/man/CMakeLists.txt index 17549bf..ed46999 100644 --- a/doc/man/CMakeLists.txt +++ b/doc/man/CMakeLists.txt @@ -9,17 +9,16 @@ if(ASCIIDOC_FOUND) ) add_custom_target(install-manpages - ${CMAKE_COMMAND} -E make_directory - "${CMAKE_INSTALL_PREFIX}/share/man/man1/" - COMMAND ${CMAKE_COMMAND} -E copy - ${DOC_OUTPUT_PATH}/man/am7xxx-play.1 - "${CMAKE_INSTALL_PREFIX}/share/man/man1/" - COMMAND ${CMAKE_COMMAND} -E copy - ${DOC_OUTPUT_PATH}/man/picoproj.1 - "${CMAKE_INSTALL_PREFIX}/share/man/man1/" - ) + COMMAND ${CMAKE_COMMAND} -DCOMPONENT=manpages -P ${CMAKE_BINARY_DIR}/cmake_install.cmake + COMMENT "Installing manpages") add_dependencies(install-manpages manpages) - install(CODE "execute_process(COMMAND ${CMAKE_BUILD_TOOL} install-manpages)") + install(CODE "execute_process(COMMAND ${CMAKE_BUILD_TOOL} manpages)") + + install(FILES + ${DOC_OUTPUT_PATH}/man/am7xxx-play.1 + ${DOC_OUTPUT_PATH}/man/picoproj.1 + DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1/" + COMPONENT manpages) endif(ASCIIDOC_FOUND)