Add CMake flag for enabling doxygen XML generation
parent
93eaf73fb3
commit
65ea0112c5
|
@ -4,6 +4,7 @@ option(GTSAM_BUILD_DOCS "Enable/Disable building of doxygen doc
|
||||||
# configure doxygen
|
# configure doxygen
|
||||||
option(GTSAM_BUILD_DOC_HTML "Enable/Disable doxygen HTML output" ON)
|
option(GTSAM_BUILD_DOC_HTML "Enable/Disable doxygen HTML output" ON)
|
||||||
option(GTSAM_BUILD_DOC_LATEX "Enable/Disable doxygen LaTeX output" OFF)
|
option(GTSAM_BUILD_DOC_LATEX "Enable/Disable doxygen LaTeX output" OFF)
|
||||||
|
option(GTSAM_GENERATE_DOC_XML "Enable/Disable doxygen XML output" OFF)
|
||||||
|
|
||||||
# add a target to generate API documentation with Doxygen
|
# add a target to generate API documentation with Doxygen
|
||||||
if (GTSAM_BUILD_DOCS)
|
if (GTSAM_BUILD_DOCS)
|
||||||
|
@ -20,6 +21,12 @@ if (GTSAM_BUILD_DOCS)
|
||||||
set(GTSAM_BUILD_DOC_LATEX_YN "NO")
|
set(GTSAM_BUILD_DOC_LATEX_YN "NO")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (GTSAM_GENERATE_DOC_XML)
|
||||||
|
set(GTSAM_GENERATE_XML_YN "YES")
|
||||||
|
else()
|
||||||
|
set(GTSAM_GENERATE_XML_YN "NO")
|
||||||
|
endif()
|
||||||
|
|
||||||
# GTSAM core subfolders
|
# GTSAM core subfolders
|
||||||
set(gtsam_doc_subdirs
|
set(gtsam_doc_subdirs
|
||||||
gtsam/base
|
gtsam/base
|
||||||
|
|
|
@ -2120,7 +2120,7 @@ MAN_LINKS = NO
|
||||||
# captures the structure of the code including all documentation.
|
# captures the structure of the code including all documentation.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
|
|
||||||
GENERATE_XML = NO
|
GENERATE_XML = @GTSAM_GENERATE_XML_YN@
|
||||||
|
|
||||||
# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
|
# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
|
||||||
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
|
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
|
||||||
|
|
|
@ -42,10 +42,9 @@ See Windows Installation in INSTALL.md in the root directory.
|
||||||
|
|
||||||
The wrap library provides for building the Python wrapper with docstrings included, sourced from the C++ Doxygen comments. To build the Python wrapper with docstrings, follow these instructions:
|
The wrap library provides for building the Python wrapper with docstrings included, sourced from the C++ Doxygen comments. To build the Python wrapper with docstrings, follow these instructions:
|
||||||
|
|
||||||
1. Change `GENERATE_XML` in `doc/Doxyfile.in` to `YES`.
|
1. Build GTSAM with the flag `-DGTSAM_GENERATE_DOC_XML=1`. This will compile the `doc/Doxyfile.in` into a `Doxyfile` with `GENERATE_XML` set to `ON`.
|
||||||
2. Build GTSAM. This will compile the `doc/Doxyfile.in` into a `Doxyfile`.
|
2. From the project root directory, run `doxygen build/<build_name>/doc/Doxyfile`. This will generate the Doxygen XML documentation in `xml/`.
|
||||||
3. From the project root directory, run `doxygen build/<build_name>/doc/Doxyfile`. This will generate the Doxygen XML documentation in `xml/`.
|
3. Build the Python wrapper with the CMake option `GTWRAP_ADD_DOCSTRINGS` enabled.
|
||||||
4. Build the Python wrapper with the CMake option `GTWRAP_ADD_DOCSTRINGS` enabled.
|
|
||||||
|
|
||||||
## Unit Tests
|
## Unit Tests
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue