File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
project ("CatCutifier" )
4
4
5
+ # Add the cmake folder so the FindSphinx module is found
5
6
set (CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR} /cmake" ${CMAKE_MODULE_PATH} )
6
7
7
8
add_subdirectory ("CatCutifier" )
Original file line number Diff line number Diff line change 2
2
An example of setting up CMake + Sphinx + Read the Docs for C++
3
3
4
4
See the documentation [ here] ( https://cpp-documentation-example.readthedocs.io/en/latest/ )
5
+
6
+ ## Dependencies
7
+
8
+ - [ Doxygen] ( http://www.doxygen.nl/download.html )
9
+ - [ Sphinx] ( https://www.sphinx-doc.org/en/master/usage/installation.html )
10
+ - [ Breathe] ( https://pypi.org/project/breathe/ )
11
+ - [ sphinx_rtd_theme] ( https://github.com/rtfd/sphinx_rtd_theme )
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ file(MAKE_DIRECTORY ${DOXYGEN_OUTPUT_DIR})
21
21
# Only regenerate Doxygen when the Doxyfile or public headers change
22
22
add_custom_command (OUTPUT ${DOXYGEN_INDEX_FILE}
23
23
DEPENDS ${CAT_CUTIFIER_PUBLIC_HEADERS}
24
- COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYFILE_OUT}
24
+ COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYFILE_OUT}
25
25
MAIN_DEPENDENCY ${DOXYFILE_OUT} ${DOXYFILE_IN}
26
- COMMENT "Generating docs"
26
+ COMMENT "Generating docs"
27
27
VERBATIM )
28
28
29
29
# Nice named target so we can run the job easily
@@ -56,4 +56,4 @@ add_custom_target(Sphinx ALL DEPENDS ${SPHINX_INDEX_FILE})
56
56
57
57
include (GNUInstallDirs)
58
58
install (DIRECTORY ${SPHINX_BUILD}
59
- DESTINATION ${CMAKE_INSTALL_DOCDIR} )
59
+ DESTINATION ${CMAKE_INSTALL_DOCDIR} )
You can’t perform that action at this time.
0 commit comments