diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-05-13 01:48:10 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-05-13 01:48:10 -0400 |
commit | 25493db89f8e23d2e78e1ee16b3748173ef60188 (patch) | |
tree | 2c9e2acfd3d430780ed36d0dc4fcd8e646519d18 /CMakeLists.txt | |
parent | 6cdf18373905d12c776263fa0287126e3b0a9553 (diff) | |
download | cleanpath-25493db89f8e23d2e78e1ee16b3748173ef60188.tar.gz |
Improve man page installation
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 562064d..604534b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,5 +40,16 @@ install(TARGETS cleanpath_shared install(TARGETS cleanpath RUNTIME DESTINATION bin) -install(FILES ${CMAKE_SOURCE_DIR}/docs/man/cleanpath.1 - DESTINATION share/man/man1 COMPONENT doc) + +file(GLOB MAN1_FILES ${CMAKE_SOURCE_DIR}/docs/man/*.1) +file(GLOB MAN3_FILES ${CMAKE_SOURCE_DIR}/docs/man/*.3) + +foreach(file ${MAN1_FILES}) + install(FILES ${file} + DESTINATION share/man/man1 COMPONENT doc) +endforeach() + +foreach(file ${MAN3_FILES}) + install(FILES ${file} + DESTINATION share/man/man3 COMPONENT doc) +endforeach() |