File tree Expand file tree Collapse file tree 4 files changed +17
-18
lines changed Expand file tree Collapse file tree 4 files changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -71,10 +71,9 @@ if(NOT_SUBPROJECT)
71
71
catch_discover_tests (errors_test )
72
72
endif ()
73
73
74
- # Build XML documentation
75
74
if (BUILD_DOCS )
76
- include (cmake/add_xml_docs .cmake )
77
- add_xml_docs ( errors_docs include / errors/error.hpp )
75
+ include (cmake/GenerateDocs .cmake )
76
+ target_generate_xml_docs ( errors )
78
77
endif ()
79
78
80
79
if (BUILD_EXAMPLES )
Original file line number Diff line number Diff line change
1
+ # Function to generate an XML documentation of a specific target.
2
+ # Arguments:
3
+ # - TARGET: The target for which to generate an XML documentation.
4
+ function (target_generate_xml_docs TARGET )
5
+ find_package (Doxygen REQUIRED )
6
+
7
+ # Configure Doxygen to generate an XML documentation.
8
+ set (DOXYGEN_GENERATE_HTML NO )
9
+ set (DOXYGEN_GENERATE_XML YES )
10
+ set (DOXYGEN_XML_OUTPUT ${TARGET} _docs )
11
+
12
+ get_target_property (TARGET_HEADER_SET ${TARGET} HEADER_SET )
13
+ doxygen_add_docs (${TARGET} _docs ${TARGET_HEADER_SET} USE_STAMP_FILE )
14
+ endfunction ()
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -39,8 +39,7 @@ if(NOT_SUBPROJECT)
39
39
catch_discover_tests (errors_format_test )
40
40
endif ()
41
41
42
- # Build XML documentation
43
42
if (BUILD_DOCS )
44
- add_xml_docs ( errors_format_docs include /errors/format.hpp )
43
+ target_generate_xml_docs ( errors_format )
45
44
endif ()
46
45
endif ()
You can’t perform that action at this time.
0 commit comments