diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2014-05-31 03:22:00 +0100 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2014-06-05 20:52:20 -0700 |
commit | 001e84091b0a7bca03586e9aebd9103e9630bfa5 (patch) | |
tree | 52cbec8a8dbd4a67f509585a2b072116e3fc9a00 /man | |
parent | d62f8178f9f29a5ab2942d03fdc251544eec7edb (diff) |
cmake: reformat/update install targets
Cleanup the formatting and add component for each build target.
The latter will allow us to use CPack to create a component
based installer for Windows.
Additionally install wflinfo to CMAKE_INSTALL_BINDIR rather
than hardcoding it to 'bin'.
v2: Tag html documentation as htmldocs COMPONENT. Suggested by Chad.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'man')
-rw-r--r-- | man/html.cmake | 7 | ||||
-rw-r--r-- | man/manpages.cmake | 21 |
2 files changed, 20 insertions, 8 deletions
diff --git a/man/html.cmake b/man/html.cmake index ea55600..59e0490 100644 --- a/man/html.cmake +++ b/man/html.cmake @@ -92,5 +92,8 @@ add_custom_target(html DEPENDS ${html_outputs} ) -install(DIRECTORY ${html_out_dir} - DESTINATION ${CMAKE_INSTALL_DOCDIR}/html) +install( + DIRECTORY ${html_out_dir} + DESTINATION ${CMAKE_INSTALL_DOCDIR}/html + COMPONENT htmldocs + ) diff --git a/man/manpages.cmake b/man/manpages.cmake index 1332eb9..b8ededa 100644 --- a/man/manpages.cmake +++ b/man/manpages.cmake @@ -92,9 +92,18 @@ add_custom_target(man DEPENDS ${man_outputs} ) -install(DIRECTORY ${man_out_dir}/man1 - DESTINATION ${CMAKE_INSTALL_MANDIR}) -install(DIRECTORY ${man_out_dir}/man3 - DESTINATION ${CMAKE_INSTALL_MANDIR}) -install(DIRECTORY ${man_out_dir}/man7 - DESTINATION ${CMAKE_INSTALL_MANDIR}) +install( + DIRECTORY ${man_out_dir}/man1 + DESTINATION ${CMAKE_INSTALL_MANDIR} + COMPONENT manuals + ) +install( + DIRECTORY ${man_out_dir}/man3 + DESTINATION ${CMAKE_INSTALL_MANDIR} + COMPONENT manuals + ) +install( + DIRECTORY ${man_out_dir}/man7 + DESTINATION ${CMAKE_INSTALL_MANDIR} + COMPONENT manuals + ) |