mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Sphinx and CMake, based on this example:
http://ericscottbarr.com/blog/2012/03/sphinx-and-cmake-beautiful-documentation-for-c-projects/
The 'docs/CMakeLists.txt' file was deleted in this commit: 0abfb8f46f
Thanks to Arnaud Gelas, he has passed some links:
https://github.com/InsightSoftwareConsortium/ITKExamples/blob/master/CMake/FindSphinx.cmake
https://github.com/InsightSoftwareConsortium/ITKExamples/blob/master/CMakeLists.txt#L120-L154
Change-Id: Ic65e7f8ec5280d1e71a897a144417a21761c5553
This commit is contained in:
committed by
Gerrit Code Review
parent
793a339335
commit
c51b11c104
@@ -0,0 +1,19 @@
|
||||
FIND_PACKAGE(Sphinx REQUIRED)
|
||||
|
||||
# HTML output directory
|
||||
SET(SPHINX_HTML_DIR "${CMAKE_BINARY_DIR}/docs/html")
|
||||
|
||||
# Install documentation
|
||||
INSTALL(DIRECTORY ${SPHINX_HTML_DIR}
|
||||
DESTINATION ceres/doc
|
||||
COMPONENT Doc
|
||||
PATTERN "${SPHINX_HTML_DIR}/*")
|
||||
|
||||
# Building using 'make_docs.py' python script
|
||||
ADD_CUSTOM_TARGET(project_docs ALL
|
||||
python
|
||||
"${CMAKE_SOURCE_DIR}/scripts/make_docs.py"
|
||||
"${CMAKE_SOURCE_DIR}"
|
||||
"${CMAKE_BINARY_DIR}/docs"
|
||||
"${SPHINX_EXECUTABLE}"
|
||||
COMMENT "Building HTML documentation with Sphinx")
|
||||
+1
-1
@@ -48,7 +48,7 @@ copyright = u'2013, Google Inc.'
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '1.5.0'
|
||||
version = '1.5'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '1.5.0'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user