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: 0abfb8f46f534b05413bb4d64b960d6fd0a9befb
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
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b6c7359..e47ca52 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -73,7 +73,11 @@
#
# For versions without ABI changes, bump the smallest number in CERES_VERSION,
# but leave the CERES_ABI_VERSION unchanged.
-SET(CERES_VERSION 1.5.0)
+SET(CERES_VERSION_MAJOR 1)
+SET(CERES_VERSION_MINOR 5)
+SET(CERES_VERSION_PATCH 0)
+SET(CERES_VERSION
+ ${CERES_VERSION_MAJOR}.${CERES_VERSION_MINOR}.${CERES_VERSION_PATCH})
SET(CERES_ABI_VERSION 1.5.0)
ENABLE_TESTING()
@@ -646,13 +650,16 @@
ADD_SUBDIRECTORY(internal/ceres)
OPTION(BUILD_DOCUMENTATION
- "Build User's Guide (pdf)"
+ "Build User's Guide (html)"
OFF)
IF (${BUILD_DOCUMENTATION})
MESSAGE("-- Documentation building is enabled")
- # Generate the User's Guide (pdf).
+ # Make CMake aware of the cmake folder, in order to find 'FindSphinx.cmake'
+ SET (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
+
+ # Generate the User's Guide (html).
# The corresponding target is UserGuide, but is included in ALL.
ADD_SUBDIRECTORY(docs)
ENDIF (${BUILD_DOCUMENTATION})