32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 23e9bd9cba86b1dac9a35a4cadc91a7c42cd036e Mon Sep 17 00:00:00 2001
|
|
From: Felix Wang <77263945+topazus@users.noreply.github.com>
|
|
Date: Wed, 7 Jun 2023 04:21:27 -0400
|
|
Subject: [PATCH] Set DOXYGEN_GENERATE_MAN config option to generate manpages
|
|
|
|
---
|
|
CMakeLists.txt | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index e14145c..0634d13 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -228,12 +228,18 @@ install(DIRECTORY "include/" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
|
|
|
find_package(Doxygen)
|
|
if (DOXYGEN_FOUND)
|
|
+ set(DOXYGEN_GENERATE_MAN YES)
|
|
doxygen_add_docs(ZycoreDoc "include/Zycore/" ALL)
|
|
install(
|
|
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/"
|
|
DESTINATION "${CMAKE_INSTALL_DOCDIR}/api"
|
|
COMPONENT Documentation
|
|
)
|
|
+ install(
|
|
+ DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/man/man3/"
|
|
+ DESTINATION "${CMAKE_INSTALL_MANDIR}/man3"
|
|
+ COMPONENT Documentation
|
|
+ )
|
|
endif()
|
|
|
|
# =============================================================================================== #
|