Package: cegui-mk2 / 0.8.7+git20220615-3

doxygenout Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: Allow proper build of doxygen documentation
 This patch changes the OUTPUT_DIRECTORY variable in doxyfile.in so that the
 output can be later moved into the corresponding debian package. It also
 modifies the root CMakeLists.txt file to properly call doxygen during the
 package build and to install the resulting files.
Author: Muammar El Khatib <muammar@debian.org>
Author: Author: Olek Wojnar <olekw.dev@gmail.com>
Last-Update: <2019-03-31>
--- a/doc/doxygen/doxyfile.in
+++ b/doc/doxygen/doxyfile.in
@@ -5,7 +5,7 @@
 #---------------------------------------------------------------------------
 PROJECT_NAME           = "Crazy Eddie's GUI System"
 PROJECT_NUMBER         = "${CEGUI_VERSION}"
-OUTPUT_DIRECTORY       =
+OUTPUT_DIRECTORY       = "${PROJECT_BINARY_DIR}/doc/doxygen"
 OUTPUT_LANGUAGE        = English
 USE_WINDOWS_ENCODING   = YES
 BRIEF_MEMBER_DESC      = YES
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -744,10 +744,12 @@
 add_subdirectory(datafiles)
 
 if (DOXYGEN_FOUND)
-    add_custom_target(html
-        "${DOXYGEN_EXECUTABLE}"
+    add_custom_target(html ALL
+        "${DOXYGEN_EXECUTABLE}" "${PROJECT_BINARY_DIR}/doc/doxygen/doxyfile"
         WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/doc/doxygen"
         COMMENT "Generating documentation" VERBATIM)
+    install(DIRECTORY "${PROJECT_BINARY_DIR}/doc/doxygen/html"
+        DESTINATION "share/doc/libcegui-mk2-${CEGUI_VERSION}")
 endif()
 
 if (CEGUI_BUILD_TESTS OR CEGUI_BUILD_PERFORMANCE_TESTS OR CEGUI_BUILD_DATAFILES_TEST)